RE: [PHP] Quickie question with explode.

From: Date: Thu, 24 Oct 2002 12:09:19 +0000
Subject: RE: [PHP] Quickie question with explode.
Groups: php.general 
Request: Send a blank email to php-general+get-121238@lists.php.net to get a copy of this message
Doh! Thank man. -----Original Message----- From: Marek Kilimajer [mailto:kilimajer@webglobe.sk] Sent: 24 October 2002 14:02 To: PHP Subject: Re: [PHP] Quickie question with explode. 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. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#121238) next »