$var = "AMG";
$exp =" / /";
print_r (preg_split ($exp,$var));
) result:
Array ( [0] => [1] => A [2] => M [3] => G [4] => )
read the manual and the explanation is:
pattern subject FALSE
does not quite understand what this sentence means, why does it return two empty elements?