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

Posted by amygdala on 12/10/37 11:55

"Andy Hassall" <andy@andyh.co.uk> schreef in bericht
news:vs2vd2puvg64d1dcnuhekra2ci9l3e3g59@4ax.com...
> 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

Hi Andy,

It gives me:

Parse error: parse error, unexpected '*', expecting ')'

Any ideas?

Cheers

 

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

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