note 62623 added to function.array-search
| From: | radek at wp dot pl | Date: | Sun, 05 Mar 2006 18:54:48 +0000 |
| Subject: | note 62623 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104857@lists.php.net to get a copy of this message | ||
Good include:
<?
$tablica = array('newsy', 'download', 'linki', 'costam');
$x = array_search($_GET["act"], $tablica);
include $tablica[$x].'.php';
?>
----
Server IP: 81.223.254.85
Probable Submitter: 83.30.93.63
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-search.php
Edit -- http://master.php.net/note/edit/62623
Del: integrated -- http://master.php.net/note/delete/62623/integrated
Del: useless -- http://master.php.net/note/delete/62623/useless
Del: bad code -- http://master.php.net/note/delete/62623/bad+code
Del: spam -- http://master.php.net/note/delete/62623/spam
Del: non-english -- http://master.php.net/note/delete/62623/non-english
Del: in docs -- http://master.php.net/note/delete/62623/in+docs
Del: other reasons-- http://master.php.net/note/delete/62623
Reject -- http://master.php.net/note/reject/62623
Search -- http://master.php.net/manage/user-notes.php