PHP Arrays and Functions Mcqs

Our collections of Multiple choice questions and answers focuses on study of PHP. These questions are chosen from a collection of most authoritative and best reference books on PHP Arrays and Functions. Our aim is to prepare an individual for competitive exams like NTS, GAT, ECAT, University and College entrance exams and various tests and job interviews. One should practice our Mcqs to assimilate PHP Arrays and Functions comprehensively.

4.
Arsort ( ) function same as asort ( ) but

It sorts values in descending order

It sorts values in ascending order

It start sorting values from middle

None of them

7.
A function that takes an array and returns a new array, where old values are changed with new keys?

Array_keys ( )

Array_values ( )

Array_count_values

None of them

9.
Side effect of array_pop ( ) function is

It removes the first element of an array

It removes last element of an array

It modifies an array from middle

All of them

10.
A function that returns keys of its input array in form of new array where keys are stored as values, is a

Return_function ( )

Keys ( ) function

Implode ( ) function

Array_keys ( ) function

0Shares
0
Scroll to Top