PHP Arrays
Which of the following are correct ways of creating an array?
1. state[0] = “karnataka”;
2. $state[] = array(“karnataka”);
3. $state[0] = “karnataka”;
4. $state = array(“karnataka”);

2, 3 and 4
2 and 3
3 and 4
Only 1

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What array will you get if you convert an object to an array?

An array with properties of that object as the array's elements
An array with properties of that object as the Key elements
An array with properties of that array as the object's elements
An array with keys of that object as the array's elements

ANSWER DOWNLOAD EXAMIANS APP