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

Posted by ImOk on 11/21/00 11:55

> Hi,
>
> 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. I've tried surrounding them with the brackets and
> double quotes too, to no avail. Sould this be possible in php? If so, what
> am I missing?


this wont work either inside a class. Seems like a serious problem to
me.

class foo {
private $xyz = 2 * 3;
}

 

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

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