Breaking Up a String

From: Date: Sun, 17 Dec 2000 21:26:14 +0000
Subject: Breaking Up a String
Groups: php.general 
Request: Send a blank email to php-general+get-30763@lists.php.net to get a copy of this message
Hey, Anyone have an efficient way of doing this. Say I have a string deliminated and seperated by quotes and comas like this: "Joe Shmoe","10/00","2342","California" etc... there's about 8 fields of information. How could I seperate each one into a seperate variable. I was thinking that putting the seperated data into an array may work and sort it from there. $name = $separray[0]; $date = $separray[1]; It always returns the fields in the same order, so that is not a problem. How would I seperate this information to begin with. Then, what would be the best method of assigning the seperated data into it's own unique variable? Thanks.

« previous php.general (#30763) next »