Re: split strings
| From: | dgw at q-logic dot org | Date: | Wed, 12 Jul 2000 22:24:58 +0000 |
| Subject: | Re: split strings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6322@lists.php.net to get a copy of this message | ||
Im not sure I understand. Take a look at this and see if it helps:
$twowords="word1/word2";
$words=explode("/",$twowords);
echo $words[0]; // prints word1
echo $words[1]; // prints word2
Regards
david
----- Original Message -----
From: "Peter Benoit" <pbenoit@triton-network.com>
To: <php-general@lists.php.net>
Sent: Thursday, July 13, 2000 12:15 AM
Subject: [PHP] split strings
> How can I split apart word1/word2, and then reference word1 and word2 with
a
> value?
>
> thanks,
> Peter
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>