Re: Quickie question with explode.

From: Date: Thu, 24 Oct 2002 12:01:56 +0000
Subject: Re: Quickie question with explode.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121235@lists.php.net to get a copy of this message
you need str_replace(',', ';', $string) first and then explode(';',$string) Simon Taylor wrote:
Hi All, I have some lists that are separated by either ';' or ',' or a mix of the two, I wish to use xplode to get the values, is there a way to use explode like this.. $ar = explode (';'or',',$string); Thanks in advance ____________________________________ Simon Taylor AfriTol (Pty) Ltd.


« previous php.general (#121235) next »