Hi
I'm not sure what to used to split numbers and letter from words.
So far I try preg_split() function and also mb_split() function both gave me No ending delimiter ^
There is ^ (caret).
For example my data is from my database and it's not an array and it nothing to do with any password or security.
It's an example:
I echo out:
<?php echo $numbers; ?>^<?php echo $words; ?>
Then the result is
123^ABC
How do I separate 123^ABC and echo out $word & $number individually on a different page.
I am using list() function:
list($number, $word)=preg_split('^', $word)
echo '$number'; // 123
echo '$word'; // ABC
list($number, $word)=mb_split('^', $number)
echo '$number'; // 123
echo '$word'; // ABC
Any Suggestions and explanations will help. I appreciate it. Thanks!