Advertisement
Arthur_lima

Untitled

Jul 3rd, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2.  
  3.     $nomes = array("Arthur", "Ana", "João", "Maria");
  4.  
  5.     if (in_array("Carlos", $nomes)):
  6.         echo "Existe no array";
  7.     else:
  8.         echo "Não existe no array";
  9.     endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement