Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP explode

Name: Anonymous 2010-05-03 2:24

Trying hard to explode a flat file hit counter.

Here is an example:

home:1|news:33|contact:4

I need to explode first by the | to get the page id and the hits, then I need to explode again by the : to separate them.

I tried using foreach but that was a mess. Any ideas?

Name: Anonymous 2010-05-03 11:22

>>5
They could have called it join. But we must forgive them, they came from a language which thought it would be fun to have things like ``chomp'' and ``slurp mode.''

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List