Answers for "check if variables of an array php"

PHP
0

is_array Php

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

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

$no = 'this is a string';

echo is_array($no) ? 'Array' : 'not an Array';
?>
Posted by: Guest on December-28-2021

Code answers related to "check if variables of an array php"

Browse Popular Code Answers by Language