note 120297 added to function.array

From: Date: Thu, 08 Dec 2016 05:52:35 +0000
Subject: note 120297 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-208275@lists.php.net to get a copy of this message
Here a short sample how to search for a Value in an Array: <html> <head> </head> <body> <form> <label for="Value">Search for a Value:</label> <input type="text" name="Value" id="Value" maxlength="50"><br> <input type="submit" name="submit" id="submit"> </form> <?php $array = array('A' => 'textin A', 'B' => 'text in B', 'C' => 'text in C'); if (isset($_GET["submit"])) { $Value=$_GET["Value"]; if($array[$Value]=="") { echo"Value was not found"; } else { echo"<p>".$Value.":".$array[$Value]."</p>"; } } ?> </body> </html> ---- Server IP: 72.52.91.14 Probable Submitter: 108.171.129.164 (proxied: 166.49.145.214) ---- Manual Page -- http://php.net/manual/en/function.array.php Edit -- https://master.php.net/note/edit/120297 Del: integrated -- https://master.php.net/note/delete/120297/integrated Del: useless -- https://master.php.net/note/delete/120297/useless Del: bad code -- https://master.php.net/note/delete/120297/bad+code Del: spam -- https://master.php.net/note/delete/120297/spam Del: non-english -- https://master.php.net/note/delete/120297/non-english Del: in docs -- https://master.php.net/note/delete/120297/in+docs Del: other reasons-- https://master.php.net/note/delete/120297 Reject -- https://master.php.net/note/reject/120297 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#208275) next »