Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

Re: [PHP] explode() From: Mark Maggelet (maggelet <email protected>)
Date: 07/16/01

On Mon, 16 Jul 2001 16:23:19 -0700, Adam Plocher
(aplocher <email protected>) wrote:
>$reqmonth = ${explode("-",$row[5])}[1];
>
>Is there anyway I can get that to work without having to use
>multiple lines
>of code?

hmm... how about
$reqmonth = array_pop(explode("-",$row[5],2));

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>