hello i have one very NOOB question and i want to know the answer. First my programing language was VB6 and there i could use Split method like in PHP, but main deference is that when i use this code:
$page_array = split('12s12d1a351c12a55a', 'a', 0);
echo count($page_array);
i get result “1” where i must get result more than 1. so what is wrong? can you help me?
You are settings your limit to 0, therefore you will retrieve the whole string as 1 line (no splits)
remove the ,0 in your split statement, also it is (delimiter, string) not (string, delimeter) -> php has some backwards commands
try:
$page_array = split(‘a’, ’12s12d1a351c12a55a’);
echo count($page_array);
That should produce : 4