kosaks17 Posted January 25, 2012 Share Posted January 25, 2012 Im trying to parse this string and put it in the array.. However i dont know how.. 11111<>your mobile<>the receiver<>keyword<>2012-01-15<>12:09:08<>wow "this", is great! I want to remove this sign <> and put the elements on the array.. Also i would not want to loose the quotes and commas Can someone help me? thanks Link to comment https://forums.phpfreaks.com/topic/255767-help-me-with-this-problem/ Share on other sites More sharing options...
PaulRyan Posted January 25, 2012 Share Posted January 25, 2012 You'd want to look at the PHP function explode Something like this: <?PHP $string = '11111<>your mobile<>the receiver<>keyword<>2012-01-15<>12:09:08<>wow "this", is great!'; $array = explode('<>',$string); echo '<pre>'; print_r($array); echo '</pre>'; ?> Regards, PaulRyan. Link to comment https://forums.phpfreaks.com/topic/255767-help-me-with-this-problem/#findComment-1311100 Share on other sites More sharing options...
kosaks17 Posted January 25, 2012 Author Share Posted January 25, 2012 Thanks Paul! Link to comment https://forums.phpfreaks.com/topic/255767-help-me-with-this-problem/#findComment-1311136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.