i have a string and i want to convert them into an array using the character '§' :
<?php
$string="element1§element2§element3";
$array=explode("§",$string); //tried also § and §,double and single quotes
print_r($array);
?>
The output is always this :
Array ( [0] =>element1§element2§element3)
How can i let php recognize the '§' symbol in order to split the string into an array?
EDIT : I get the string from a file using file() function and iterating the array through a foreach. If i use my own example it works, but with the exernal file do not.
The rowurlencode() of my string is the follow:
element1%A7element2%A7element3