Programming Languages PHP Objective
Mar 15, 2013

 

 <?php

 $x=array(2=>"mouse",7=>"keyboard"); 

 $y=array_keys($x); 

 echo $y[1]; 

 ?> Find the Output?

Choose the correct answer:
A) keyboard
B) mouse
C) 7
D) 2
Detailed Explanation

Option C is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback