[PHP] nested functions

2001-05-15 Thread Johannes Schmiderer
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

[PHP] time getdate GMT

2001-05-14 Thread Johannes Schmiderer
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()