Illustrating a new line as a delimiter?
Posted: Thu Apr 23, 2009 9:59 pm
Hey people,
Space as a delimiter I'm down with:
How would I represent the new lines as a delimiter? (I'm pulling the list in as a varible from another file via an include function you see:
Thanks,
L
Space as a delimiter I'm down with:
Code: Select all
$var = 'Reading Birmingham London Brighton Leeds Liverpool Cambridge'
$contents = explode([b]' '[/b], $contents);
Code: Select all
Reading
Birmingham
London
Brighton
Leeds
Liverpool
Cambridge
$contents = explode([b]' ??? '[/b], $contents);
L