RE: [PHP-DB] Array

From: Date: Fri, 29 Sep 2006 16:27:03 +0000
Subject: RE: [PHP-DB] Array
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-42443@lists.php.net to get a copy of this message
This is hardly database related but nonetheless. <? $myString = "Check one two three four. You did well to count to four."; $myString = str_replace(".","",$myString); $myString = strtolower($myString); $myWords = explode(" ", $myString); // do stuff here with your array ?> How is that? ___________________ Shaun Riches Computer Science Student http://www.sh4un.co.uk -----Original Message----- From: Ron Piggott (PHP) [mailto:ron.php@actsministries.org] Sent: Fri 29/09/2006 16:21 To: PHP DB Subject: [PHP-DB] Array If I have the sentences Check one two three four. You did well to count to four. how do I put each word into an array (so there would be 12 components in the array) as well as remove the period and make the C in Check and the Y in You lower case Ron

« previous php.db (#42443) next »