Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
- echo is_array($nomes);
- //retorna 1 verdadeiro
- echo "<hr>";
- $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
- var_dump(is_array($nomes));
- //retorna true verdadeiro
- echo "<hr>";
- $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
- if(is_array($nomes)):
- echo "é um array";
- else:
- echo "não é uma array";
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement