3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="element1§element2§element3"; $array=explode("&sect;",$string); //tried also &#167 and §,double and single quotes print_r($array);

preferences:
44.39 ms | 402 KiB | 5 Q