Thread: Split a string
View Single Post
Old 10-12-2009, 08:38 PM   #2 (permalink)
Jmz
The Acquainted
 
Join Date: Oct 2007
Location: Newcastle, UK
Posts: 113
Thanks: 3
Jmz is on a distinguished road
Default

Ooops, was easier than I thought! Incase anybody else needs the same thing.

PHP Code:
$string 'Line 1;Line 2;Line 3;';
$string explode(';',$string);
foreach (
$string as $value){
echo 
"<li>".$value."</li>";
}
unset(
$value); 
__________________
Free CSS Tutorials

Last edited by Jmz : 10-19-2009 at 12:23 PM.
Send a message via MSN to Jmz
Jmz is offline  
Reply With Quote