|
Posted by lwoods on 01/12/06 04:38
Thanks, all....
I'll follow up on the Goodall solution, Pedro.
Larry
"Pedro Graca" <hexkid@dodgeit.com> wrote in message
news:slrndsb9e4.gck.hexkid@ID-203069.user.individual.net...
> lwoods wrote:
>> I want to be able to get the present year in one statement. I know that
>> I
>> can do it this way:
>>
>> $y = getdate();
>> echo 'year='.$y['year'];
>>
>> But, I want to do something like:
>>
>> echo 'year='.getdate()['year']; # BAD, I know
>>
>> Ideas?
>
> echo 'year=', date('Y');
>
>
> If your problem is what you used for the subject
> Can I get the value from an assoc array that is returned by a
> function...in one statement?
> then there's a lovely solution proposed by ... searching ...
> ... Robin Goodall on a similar problem I posted a long way back.
>
> <http://groups.google.com/group/comp.lang.php/browse_thread/thread/96568bc7c66ad4a/ce59a0c7758992b9>
> which I shortened to <http://shorterlink.com/?S9KW1T>
>
> --
> Mail to my "From:" address is readable by all at http://www.dodgeit.com/
> == ** ## !! ------------------------------------------------ !! ## ** ==
> TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
> may bypass my spam filter. If it does, I may reply from another address!
Navigation:
[Reply to this message]
|