1.

Arrays cannot have associative indices in PHP.(a) True(b) FalseThis question was addressed to me in an interview.The query is from Putting PHP to Work in portion MySQL Programs Using Perl DBI and PHP of MySQL

Answer»

Correct answer is (B) False

The explanation is: The PHP arrays can even have both numeric and ASSOCIATIVE elements. For example, $x[1] and $x[“LARGE”] can both be the elements of the same array. $x can be an object, WHOSE elements are accessed by the arrow ‘->’ operated.



Discussion

No Comment Found

Related InterviewSolutions