Re: Array to string

From: Date: Wed, 29 Nov 2000 17:32:08 +0000
Subject: Re: Array to string
Groups: php.general 
Request: Send a blank email to php-general+get-27847@lists.php.net to get a copy of this message
$name = "Joe Stump"; $foo = explode(' ',$name); $first_name = $foo[0]; If that's all you want then your done ... if you want to loop through "Joe" like an array do this: for($i = 0 ; $i < strlen($first_name) ; ++$i) { echo $first_name[$i].'<br>'; } --Joe ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ Need a programmer? http://www.google.com/search?q=joe+stump+resume

« previous php.general (#27847) next »