Re: Please help count ?

From: Date: Thu, 04 Apr 2002 16:31:55 +0000
Subject: Re: Please help count ?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18214@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 you can do this... $myvar = ecplode(' ', $postcode); $firsthalf = $myvar[0]; But not everyone puts the space in there.... S On Thursday 04 April 2002 5:29 pm, Dave Carrera wrote: > Hi All > > > > I have a variable returned by my application. > > > > For clarity it is a post code so result could be > > > > EX3 T56 or BG56 G67 or CA2 123 > > > > But I only need the first bit of the postcode to continue my search. > > > > How do I set my var to only include the first bit of the postcode. > > > > It is returned in the format shown, so my question might be how I read > only the first bit before the space. > > > > I fully appreciate any kind of help with this and as always thank you in > advance for any help. > > > > > > > > Dave Carrera > > Php Developer > > http://davecarrera.freelancers.net > > http://www.davecarrera.com - -- Shane -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8rH/75DXg6dCMBrQRAlEUAJ9R/jfY0Ufdj5yCSiTRw7qB81B3TwCeJELP GW03u2HKvFXy9fDEEdV1lfg= =xALC -----END PGP SIGNATURE-----

« previous php.db (#18214) next »