Probably a stupid Array question
| From: | Chris Payne | Date: | Sun, 31 Mar 2002 05:07:39 +0000 |
| Subject: | Probably a stupid Array question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-18070@lists.php.net to get a copy of this message | ||
Hi there everyone,
I do this to explode my input line which consists of however many words:
$words = explode(" ", $testb);
Now i've done this and I presume that $words holds all the info as an Array (new to arrays,
sorry if i'm wrong) however, how can I put each item of the array from $words into a different
string? IE: if there are 3 items, how could I have it so that the first word is stored in $word1,
the second words is stored in $word2 etc??? Please help, thank you all so much :-)
Regards
Chris