Is there no way to access the $x within the inner function:
function outer()
{
$x = 50;
function inner()
{
echo $x;
}
inner();
}
Global in the inner function does not work. I do not want to have $x global
for all.
Hannes Schmiderer
--
PHP General Mailing List
Hi,
I'm new to PHP. I want to have the GMT Time in extra values (for instance a
array with year, mon, day, hour, )
The best way I've found is:
$idtGMTime = time() - date(Z);
$aGMTime = getdate($idtGMTime);
Any other suggestions?
Why isn't there a function like getgmdate() (as gmtime()
2 matches
Mail list logo