fork download
  1. <?php
  2.  
  3. $pages = [
  4. 'html1.html' => [1,5,60],
  5. 'html2.html' => [50,40,20],
  6. 'html3.html' => [500,3,2],
  7. ];
  8.  
  9. $input = 3;
  10.  
  11. foreach($pages as $key => $value) {
  12. if(array_search($input,$value))
  13. {
  14. echo "$input found in $key";
  15. }
  16.  
  17.  
  18.  
  19.  
  20. }
Success #stdin #stdout 0.05s 82560KB
stdin
Standard input is empty
stdout
3 found in html3.html