Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $nomes = array("Arthur", "Ana", "João", "Maria");
- if (in_array("Carlos", $nomes)):
- echo "Existe no array";
- else:
- echo "Não existe no array";
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement