getdate( time() ) array use

From: Date: Thu, 19 Oct 2000 00:40:46 +0000
Subject: getdate( time() ) array use
Groups: php.general 
Request: Send a blank email to php-general+get-21028@lists.php.net to get a copy of this message
Okay, I am brand new to php with php4 installed. I am having a touch time with the getdate( time() ) function. I can place this in a variable and then loop through by making it a hash but how can I reference just one of the items - say "weekday" $dateInfo = getdate( time() ); why can't I then print( dateInfo("weekday") ); ## to print the day of the week? phew! An explanation please for my tired brain! I think that it has something to do with turning the dateInfo into a true array, but I'm not sure how to do that! Thanks Bob Hartung

« previous php.general (#21028) next »