Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php isarray


<?php
$yes = array('this', 'is', 'an array');

echo is_array($yes) ? 'Array' : 'not an Array';
echo "
";

$no = 'this is a string';

echo is_array($no) ? 'Array' : 'not an Array';
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #isarray
ADD COMMENT
Topic
Name
6+7 =