|
Posted by Mateusz Markowski on 12/17/05 11:55
> 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?
There is no chance to work for it. Simply, there is a syntax error. It
should be:
$myArray = array( 'sessionMaxInactive' => 60*5, 'persistentMaxTime' =>
60*60*24*30 );
Navigation:
[Reply to this message]
|