Removing Spaces from Array Values
| From: | kvigor | Date: | Tue, 03 Jul 2007 01:32:59 +0000 |
| Subject: | Removing Spaces from Array Values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-258065@lists.php.net to get a copy of this message | ||
Need to remove all spaces from Array Values... And this doesn't work.
This is similar info that's within array values: $someArray[0] = "PHP is
awesome"; s/b PHPisawesome
This is similar info that's within array values: $someArray[1] = "The Toy
Boat"; s/b TheToyBoat
Begin Code===================================
$num = count($someArray);
for($num = 0; $cntr < $num; $cntr++)
{
str_replace(' ','',$someArray[$num]);
echo "$someArray[$num]<br />";
}
End Code===================================