I thought it might be better for me to start this one again
I have the following code
$string="ÀyÀuÿpÿpÿaÀsdfer";
preg_match_all("[À-ÖØ-öø-ÿ]",$string,$reg,PREG_PATTERN_ORDER);
print count($reg);
The produced answer is 1
I would like the answer to be 6 which are the characters in positions 1,3,5,7,9 and 11
$string will change as it will be taken from a file.
How do I procede, is there any other function that I can use.
I have the following code
$string="ÀyÀuÿpÿpÿaÀsdfer";
preg_match_all("[À-ÖØ-öø-ÿ]",$string,$reg,PREG_PATTERN_ORDER);
print count($reg);
The produced answer is 1
I would like the answer to be 6 which are the characters in positions 1,3,5,7,9 and 11
$string will change as it will be taken from a file.
How do I procede, is there any other function that I can use.