johnsmith153 Posted September 30, 2008 Share Posted September 30, 2008 I.e $array[0]="jim smith"; if($array[0] holds the value of "smith"){echo "yes";}else{echo "no";} "yes" Quote Link to comment Share on other sites More sharing options...
Guest Xanza Posted September 30, 2008 Share Posted September 30, 2008 $names = array("fname" => "jim", "lname" => "gold"); if(array_values($names) == "jim"){ echo "Yes"; } else { echo "No"; } Give that a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.