What is an array in PHP?

devquora
devquora

Posted On: Feb 22, 2018

 

Related Questions

PHP Array Interview Questions

How to create an empty array in PHP?

It is very easy to create an array in PHP. You can create an array in PHP using array() function or simply assigning [] in front of variable. $array1=array() or $array1=[];...

PHP Array Interview Questions

How to get number of elements in an Array?

You can use count() function to count the number of elements in a PHP Array. $array=['ram','ravi','ajay','vijay']; echo count($array); // outputs 4 ...

PHP Array Interview Questions

What is difference between array_merge and array_combine?

array_combine() is used to creates a new array by using the key of one array as keys and using the value of another array as values. Whereas array_merge() merges one or more than one array such that t...