Hi,

Is there a split function in PHP? Like the one in CGI.

Eg. in CGI :

$data = 'Lyon-Male';
($name,$value) = split(/-/, $data);

So $name gets Lyon and $value gets Male..

How do I achieve this in PHP?
Thanks to all.