Advertisement
gilsonfilho

Untitled

Jun 25th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
  3. echo is_array($nomes);
  4. //retorna 1 verdadeiro
  5. echo "<hr>";
  6. $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
  7. var_dump(is_array($nomes));
  8. //retorna true verdadeiro
  9. echo "<hr>";
  10. $nomes= array("Gilson", "Gabi", "Gabriel", "Gilberto");
  11. if(is_array($nomes)):
  12.     echo "é um array";
  13. else:
  14.     echo "não é uma array";
  15. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement