ADDRESS OF COMPANY

(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");
(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"]; ?>
(4). Which of the following PHP function will return true if a variable is an array or false if it is not an array?

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