Date: 09/30/00
- Next message: SK-Sly: "[PHP] Big problems with CRLF in E-Mails"
- Previous message: Richard Creech: "[PHP] How to improve sql query security using php?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm currently trying to calculate the number of weeks for a given month.
My following "function" works sometimes, but sometimes not - and that's the
problem :-)
$num_weeks = 1 + ceil( ( date( "t", mktime( 0, 0, 0, $month, 1, $year ) )
- ( 8 - date( "w", mktime( 0, 0, 0, $month, 1, $year ) ) )
) / 7 );
--
<?php $a=explode(" " ,"119 130 128 129 45 110 123 124 129 117 114 127 45 ".
"125 117 125 45 117 110 112 120 114 127");for($i=0;$i<sizeof($a);$i++)print
chr($a[$i]-13); /* http://sb.phpOpenTracker.de | sb <email protected> */ ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: SK-Sly: "[PHP] Big problems with CRLF in E-Mails"
- Previous message: Richard Creech: "[PHP] How to improve sql query security using php?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

