Re: explode

From: Date: Mon, 25 Jun 2001 02:29:14 +0000
Subject: Re: explode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55082@lists.php.net to get a copy of this message
if you need to pass special characters (eg. +) in the url, you need to use a url encoding function like rawurlencode().. or choose another delimeter which can be passed in the url like these -_. s Richard Kurth wrote: > > Question about explode > > this work just perfect > $name="what+ever"; > > $name1=explode("+",$name); > $fname=$name1[0] ; this has what > $lname=$name1[0] ; this has ever > > But if I pass the info from another page like this > > <a href="whatever.php?name=what+ever">test</a> > > $name1=explode("+",$name); > $fname=$name1[0] ; this has what ever > $lname=$name1[0] ; this has nothing in it > > $fname has both names in it > > How come I get this it does not make since > > Best regards, > Richard > mailto:rkurth@pacifier.com > > -- > 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

« previous php.general (#55082) next »