Hello! i have an variable like $serial = "newname=details" Now i want to split the above variable in to two parts like before 'name=' that is 'new' and after 'name=' that is 'details'. and store it in to two variables like below: $test = new $test1 = details. In variable $serial The value before 'name=' and after 'name=' is change dynamically. So i want to find where the string like 'name=' in $serial and want to fetch before and after value of 'name= 'n and store that values in separate two variables. Help me if you know the answer.Pls!
$serial = "newname=details"; list($test, $test1) = explode("=", $serial); echo $test." - ".$test1."\n"; Or are you trying to do something different?