Answer the question
In order to leave comments, you need to log in
How to insert values from an array into a string?
Hello. Please tell me how to insert values from an array into a string?
Here is an example of what is needed:
Here I get an array
$keys = explode(",", $keywords);
$key = $keys['0'];
key1, key2, key3, key4, ...
$description = $modx->resource->get('description');
Здесь начинается текст с ключом {$key} который должен отобразиться ещё и здесь {$key} , а после должен идти рандомный текст.
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