Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP is _array()
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


is_array() in php


Advertisement
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 Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com