Home Answers Viewqa PHP is _array()

 
 


kamalborana
is _array()
1 Answer(s)      2 years and 4 months ago
Posted in : PHP

is_array() in php

View Answers

January 27, 2011 at 3:15 PM


Hi Friend,

This function is of Boolean type.It checks whether a variable is an array or not.

Here is an example:

<?php
$yes = array('Hello', 'World');

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

$no = 'Hell World';

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

Thanks









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.