Answer the question
In order to leave comments, you need to log in
How to properly insert variables into an array?
Greetings!
There is an array in which you need to insert variables with values.
//Для примера переменные:
$site_subdomen_domen = 'www.yandex.ru';
$site_name_url = 'yandex.ru';
//Вставляю в массив
$allowedDomains = [
"site_subdomen_domen",
"site_name_url"
];
$allowedDomains = [
"www.yandex.ru",
"yandex.ru"
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question