ADDRESS OF COMPANY
info@company.com
123-456-789
Search
ECom
An E-Commerce Platform
Home
(current)
For Men
For Women
For Kids
General
For Adult
ICSE
ICSE
About us
Products
Contact us
Login
My Cart
Name
Email
Contact no.
(1).
$color = array('white', 'green', 'red'') Go to the editor Write a PHP script which will display the colors in the following way : Output : white, green, red, green red white
(2). Which of the following are correct ways of creating an array?
i) state[0] = "karnataka"; ii) $state[] = array("karnataka"); iii) $state[0] = "karnataka"; iv) $state = array("karnataka");
a) iii and iv
b) ii and iii
c) Only i
d) ii, iii and iv
(3). What will be the output of the following PHP code?
array ("population" => "11,35,000", "capital" => "Bangalore"), "Tamil Nadu" => array( "population" => "17,90,000", "capital" => "Chennai") ); echo $states["Karnataka"]["population"]; ?>
a) Karnataka 11,35,000
b) 11,35,000
c) population 11,35,000
d) Karnataka population
(4). Which of the following PHP function will return true if a variable is an array or false if it is not an array?
a) this_array()
b) is_array()
c) do_array()
d) in_array()
Submit
0800 2466 7921
Have a question? call us now
info@domain.com
Need support? Drop us an email
Mon – Fri 07:00 – 21:00
We are open On
×