You are here: Re: evaluate expression inside array « PHP Programming Language « IT news, forums, messages
Re: evaluate expression inside array

Posted by Andy Hassall on 12/13/77 11:55

On Sun, 13 Aug 2006 22:23:47 +0200, "amygdala" <noreply@noreply.com> wrote:

>I'm trying to assign values to an array by evaluating expressions like so:
>
>$myArray = (
> 'sessionMaxInactive' => 60*5,
> 'persistentMaxTime' => 60*60*24*30
>);
>
>This doesn't seem to work.

In what way does it "not seem to work"?

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this 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

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