PHP/Data Structure/is array
Is it an array
<?php
$yes = array("this", "is", "an array");
echo is_array($yes) ? "Array" : "not an Array";
echo "<br />";
$no = "this is a string";
echo is_array($no) ? "Array" : "Not an Array";
?>
<?php
$yes = array("this", "is", "an array");
echo is_array($yes) ? "Array" : "not an Array";
echo "<br />";
$no = "this is a string";
echo is_array($no) ? "Array" : "Not an Array";
?>