Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

PHP QUESTIONS : PART 13

foreach loop is used to transfer all the elements of an array to _________

single variable 

 different variables 

 no variables

SHOW ANSWER

Array function used to sort the array elements in the reverse order

 arsort( ) 

asort( ) 

revsort( )

SHOW ANSWER

Syntax for arsort( ) function

arsort( $arrayname); 

 arsort[$arrayname];

arsort{$arrayname};

SHOW ANSWER

Array function to sort the array elements in the ascending order

asort( ) 

 arsort( ) 

 sort()

SHOW ANSWER

Syntax for asort( ) function

asort($arrayname); 

 asort[$arrayname]; 

 asort{$arrayname};

SHOW ANSWER

Array function to count elements in an array

count( ) 

$count( )

 arcount( )

SHOW ANSWER

The syntax for function to count elements in an array

count($arrayname ); 

 arcount( $arrayname); 

 array_count( $arrayname);

SHOW ANSWER

Function that returns current value in an array

current( ) 

 current_value( ) 

 current_array( )

SHOW ANSWER

Syntax for the function that returns current value in an array

 current( $arrayname); 

 current_value($arrayname); 

 array_current( $arrayname);

SHOW ANSWER

Function that returns the end value in an array

end( ) 

 array_end( ) 

 array_end_value( )

SHOW ANSWER

Function used to search a specific value in an array

in_array( )

 array_in( ) 

 In_array( )

SHOW ANSWER

Syntax for the function that searches a specific value in the array

in_array(value,$arrayname); 

in_array($arrayname); 

 in_array(value);

SHOW ANSWER

Which function is used to sort an array in the reverse order?

rsort( ) 

 arsort( ) 

rsort( ) and arsort( )

SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in