Php Objective Questions with Answers for written test exams 11

Question 11
Which of the following form element names can be used to create an array in

PHP?

A. foo

B. [foo]

C. foo[]

D. foo[bar]
Answers 11


Answer C is correct. PHP will create an enumerated array called foo that contains

the values of all form elements named foo[] in the HTML form.Answers A, B,

and D are incorrect because any subsequent form elements of the same name will

overwrite the value in previous elements.

  







Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---