Getting a date in number form

From: Date: Tue, 15 Jul 2003 21:23:35 +0000
Subject: Getting a date in number form
Groups: php.db 
Request: Send a blank email to php-db+get-29272@lists.php.net to get a copy of this message
I need to get the month in a number format; July =7. Right now it is returning the string: July. This is what I am doing. $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; What can I do to get the number instead of the word? - Rick

« previous php.db (#29272) next »