php-general | 2001072
Date: 07/16/01
- Next message: Steve Sobol: "Re: [PHP] Credit card number checker?"
- Previous message: Brian White: "Re: [PHP] explode()"
- In reply to: Adam Plocher: "[PHP] explode()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Steve Sobol: "Re: [PHP] Credit card number checker?"
- Previous message: Brian White: "Re: [PHP] explode()"
- In reply to: Adam Plocher: "[PHP] explode()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

