How about this?

$today = getdate();
$week = (int) ($today["yday"] / 7);

Note: I'm not sure whether $today["yday"] begins with 0 or 1.

""Matt "TrollBoy" Wiseman"" <[EMAIL PROTECTED]> wrote in message
009801c10009$2a68c720$[EMAIL PROTECTED]">news:009801c10009$2a68c720$[EMAIL PROTECTED]...
> Does know of anyway to get PHP to return the week number?
> As in there are 52 weeks in a year and this is week x?
> If there is no internal feature, perhaps something built into PHPLib?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to