I have a php variable that contain value of textarea as below.
Name:Jay
Email:[email protected]
Contact:9876541230
Now I want this lines to in array as below.
Array
(
[Name] =>Jay
[Email] =>[email protected]
[Contact] =>9876541230
)
I tried below,but won't worked:-
$test=explode("<br />", $text);
print_r($test);
<br/>tag is html line break .it will not consider as new line php server side .