Sauber Programmieren Teil I

by Michi on September 13, 2006

Im Rahmen meiner soeben gestarteten Aktion "Sauberes PHP-Programmieren" hier mal ein kleines Anektdötchen …
Auch wen PHP "nur" eine Scriptsprache ist, so gibt es doch gutes und schlechtes Programmieren…

Lektion 1: Kenne alle Funktionen wie zB strtotime();

$time = mktime(0,0,0, 


$time = strtotime('+1 Week');

besser 😉

Leave your comment


Required. Not published.

If you have one.

Piwik encoutered an error: Uncaught exception 'Exception' with message 'Piwik and/or some plugins have been upgraded to a new version. --> Please run the update process first. See documentation: ' in /var/www/ Stack trace: #0 [internal function]: Piwik\Plugins\CoreUpdater\CoreUpdater->dispatch() #1 /var/www/ call_user_func_array(Array, Array) #2 /var/www/ Piwik\EventDispatcher->postEvent('Request.dispatc...', Array, false, NULL) #3 /var/www/ Piwik\Piwik::postEvent('Request.dispatc...') #4 /var/www/ Piwik\FrontController->init() #5 /var/www/ WP_Piwik\Request\Php->call('method=SitesMan...', '', ' (which lead to: Session must be started before any output has been sent to the browser; output started in /var/www/