PHP Forum

PHP Forum (http://www.selfphp.de/forum/index.php)
-   Support (http://www.selfphp.de/forum/forumdisplay.php?f=17)
-   -   ältliche Kochrezepte (http://www.selfphp.de/forum/showthread.php?t=24513)

meikel (†) 17.12.2011 07:20:04

ältliche Kochrezepte
 
Hi,

die Scriptsammlung sollte mal überarbeitet und ausgemistet werden. Die Funktion zB. ist sinnfrei:
PHP-Code:

function schaltjahr($jahr){
if((
$jahr 400) == || (($jahr 4) == && ($jahr 100) != 0))
   return 
TRUE;
else
   return 
FALSE;


http://www.php.net/manual/en/function.date.php

Year --- ---
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.

Und so könnte es aussehen:
http://selfphp.developer.vc/10/ (Quelltext wird angezeigt)

Da ich faul bin, habe ich natürlich keine Lust auf eine wilde Klickerorgie, um die Scripte an PHP 5.3.8 anzupassen. Gibts den Kram irgendwo als Textfile?


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:13:39 Uhr.

Powered by vBulletin® Version 3.8.3 (Deutsch)
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.