note 36690 added to control-structures.switch

From: Date: Sun, 19 Oct 2003 00:24:57 +0000
Subject: note 36690 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-58860@lists.php.net to get a copy of this message
In response to myself via Mar 25th <?php $go = $_GET['go']; switch($go) { case $go: $go .= '.php'; if (file_exists($go)) { include_once($go); } else { include_once('index.php'); } break; } ?> ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36690 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36690&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36690&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#58860) next »