Jump to content

Help me with this problem


kosaks17

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.