Programming Languages PHP Objective
Mar 15, 2013

<?php 

 $x=dir("."); 

 while($y=$x->read()) 

 { 

 echo $y."

 " 

 } 

 $y->close(); 

 ?> 

What is the following output?

Choose the correct answer:
A) display all folder names
B) display a folder content
C) display content of the all drives
D) Parse error
Detailed Explanation

Option B is the right answer.

Discussion (0)

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

Share Your Thoughts
Feedback