Re: explode()
| From: | Mark Maggelet | Date: | Mon, 16 Jul 2001 23:39:57 +0000 |
| Subject: | Re: explode() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58147@lists.php.net to get a copy of this message | ||
On Mon, 16 Jul 2001 16:23:19 -0700, Adam Plocher
(aplocher@erepublic.com) 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));