Re: Parsing a string with a delimeter

From: Date: Wed, 17 Oct 2001 04:24:54 +0000
Subject: Re: Parsing a string with a delimeter
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-71295@lists.php.net to get a copy of this message
list($var1, $var2, $var3, $var4) =
       explode("|", "100|SomeName|AnotherName|45");
David Robley wrote:
On Wed, 17 Oct 2001 13:12, Kal Amry wrote:
If I have 100|SomeName|AnotherName|45 Is there an easy way to parse the data in an array or whatever - I mean to have something like this: 100 in var1 SomeName in var2 Anothername in var3 45 in var4 Thanks,
explode()


« previous php.general (#71295) next »