Jump to content

Trying to explode() a string


Moore

Recommended Posts

the string holds multiple cases of a category id and a last visited timestamp like so..

 

(cat_id).(last_visited)/(cat_id).(last_visited)

example:

ann.1275669173/sugg.1275669055/upd.1275668000

 

what i want to do is create an array where the key is the category id (before '.') and the value is the timestamp (after '.'), like so:

 

$New[ann] would equal 1275669173

$New[sugg] would equal 1275669055

$New[upd] would equal 1275668000

 

and so on.. i hope someone can help out here.. i'm pretty stuck

Link to comment
https://forums.phpfreaks.com/topic/203874-trying-to-explode-a-string/
Share on other sites

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.