RE: [PHP-WIN] explode
| From: | Ross Fleming | Date: | Mon, 25 Mar 2002 03:09:46 +0000 |
| Subject: | RE: [PHP-WIN] explode | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12742@lists.php.net to get a copy of this message | ||
No probs.
explode is a way of splitting up a string using any character you want as
the divider. For example...
Say you wanted to split a string into individual words. $string_var = "The
cat sat on the mat";
$words_var = explode(" ", $string_var);
Explode splits $string_var by the space character and returns an array of
all the words that are in $string_var.
$words_var is now an array of strings with a word in each element.
Ross
-----Original Message-----
From: KONUS [mailto:konus@bdg.centrin.net.id]
Sent: 15 March 2002 19:20
To: php-windows@lists.php.net
Subject: [PHP-WIN] explode
What is explode...??
please explaine it in simple english with an example.
Because iam a new to PHP.
Many thanks, --ZEUS--