-
What will be the output of the following php code?
<?php
$Employee = array("Ajit" => array
( "Salary" => "2,40,000", "Designation" => "Software Engineer"),
"Sumi Sharma" => array( "Salary" => "3,00,000",
"Designation" => "Software Developer") );
echo $Employee["Ajit"]["Salary"];
?>
-
- Error
- Ajit 2,40,000
- Ajit Sumi Sharma
- 2,40,000
- None of these
Correct Option: D
Treat Employee as a multidimensional array and accordingly traverse it to get the value.