faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 4 people (50%) answered Yes
Recently 2 of 4 people (50%) answered Yes

Entry

.How would you break up a delimited string into an array of substrings?

Mar 24th, 2008 20:06
ha mo, Chad Currie, Himanshu Jain, http://www.blogvoid.com/


The explode( ) function will split up a string into an array.
$mystring='cats,dogs,chickens,hens';
$animalarray = explode(',', $mystring);
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com