Home > PHP > check if value present in array – PHP

check if value present in array – PHP

<?php
if(in_array(“val”,$array))
echo “Exists” ;
?>
EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.

Switch to our mobile site