@andre4s_yFeb 24.2008 — #try : [code=php] $output = preg_split("/=/",$string, 2); //or $output = preg_split("/(=)/",$string, 2,PREG_SPLIT_DELIM_CAPTURE); //or preg_match("/(^.+=)(.+$)/U",$string,$output); [/code] That first line code split the $string into array of 2, without include the delimiter.
That second line code split the $string into array of 3, with include the demiliter between.
That third line matching the $string first and capture the subpattern.
@ZiplineFeb 24.2008 — #This may not be the fastest way to get to the result you were looking for but I was able to do it successfully using explode just as a learning exercise. I have included a full sample script of how I did it including output.