how to search an array using php function

<?php
$people = array(“akram”, “javed”, “prem”, “ninda”,”chummy”);

if (in_array(“chummy”, $people))
  {
  echo “Match found,ok”;
  }
else
  {
  echo “Match not found”;
  }
?>