Page 1 of 1

'Delimiters'

Posted: Tue Feb 24, 2004 8:46 am
by Jim
How do I get information inside a set of delimiters I define?

explode() doesn't seem to work well because it doesn't understand that I'm looking for the information BETWEEN my | and |, and not direcly after.

So when I explode("|" , $doc), I get an array like this

Code: Select all

array(

[0] => text
[1] => //Nothing here because there's a space directly behind the second delimiter
[2] => text
[3] => //Another space

);
He'p is appreciated ;)

Posted: Tue Feb 24, 2004 8:59 am
by Illusionist
try using the split() function.