Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

array_key_exists function use

Tue Oct 28, 2008 1:38 am

Code:
<?php
   $state
["Delaware"] = "December 7, 1787";
   
$state["Pennsylvania"] = "December 12, 1787";
   
$state["Ohio"] = "March 1, 1803";
   if (
array_key_exists("Ohio", $state)) echo "Ohio joined the Union on $state[Ohio]";
?>




Post a reply
  Related Posts  to : array_key_exists function use
 php function     -  
 Function return more than one value     -  
 Nested function     -  
 Using the array_slice () Function     -  
 function key recognition     -  
 Function Overloading     -  
 Using include function     -  
 finalize() function     -  
 The isset() Function     -  
 srand function example     -  

Topic Tags

PHP Arrays