fork download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $a=777;
  6. $a1="red";
  7.  
  8. $b=array( "777"=>array("kd"=>"34", "um"=>"red"), "888"=>array("kd"=>"16", "um"=>"yelow") );
  9.  
  10. if (in_array($a1,$b[$a])) {
  11. echo "I find!";
  12. } else {
  13. echo "No Find!";
  14. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
I find!