Answer the question
In order to leave comments, you need to log in
Why don't PHP statements work in MODX snippet?
Hello! There is a simple task to split a string on a space character.
The call is as follows:
flip snippet code:
$sites = explode(" ", $site);
echo $sites[0];
$site = "естественныероды.рф большаясемья.рф";
$sites = explode(" ", $site);
echo $sites[0];
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