Reply to Can I get the value from an assoc array that is returned by a function...in one statement?

Your name:

Reply:


Posted by lwoods on 01/12/06 03:04

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?

TIA,

Larry Woods

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация