Reply to evaluate expression inside array

Your name:

Reply:


Posted by amygdala on 12/17/27 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?

Thanks.

[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

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