Advertisement
niammuddin

contoh kondisi in_array

Oct 17th, 2020
1,927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1.  
  2. <?php
  3. $input = 'MTAwMDA=';
  4. $ar = array('MTAwMDA=', 'MTUwMDA=', 'MjAwMDA=', 'MjUwMDA=', 'MzAwMDA=', 'NTAwMDA=', 'NjAwMDA=', 'NzUwMDA=', 'MTAwMDAw=', 'MTUwMDAw=', 'MTc1MDAw=', 'MjAwMDAw=', 'MjUwMDAw=', 'MzAwMDAw=', 'MzUwMDAw=', 'NDAwMDAw=', 'NDUwMDAw=', 'NTAwMDAw=');
  5. if (!in_array($input, $ar)) {
  6.     echo $input.' not found';
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement