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 14

Syntax for the function used to get the next element in an array

next($array); 

next(previous index,$array); 

 next(value, $array);

SHOW ANSWER

Function used to find the previous element in a php array

prev( ); 

previous();

 previous_element( );

SHOW ANSWER

Array function used to shuffle the array elements

shuffle( ) 

shuffle_array( ) 

 array_shuffle( )

SHOW ANSWER

Syntax for shuffling array elements

 shuffle($arrayname); 

 shuffle_array($arrayname); 

array_shuffle($arrayname);

SHOW ANSWER

Which function checks that an array exists ?

 is_array( ) 

 exists( ) 

 array_exist( )

SHOW ANSWER

Syntax for the function that checks existance of an array

 is_array( $arrayname); 

 exists($arrayname); 

 array_exist($arrayname);

SHOW ANSWER

What is the type of value returned by is_array( )

Boolean 

Integer 

Float

SHOW ANSWER

What is the return value for is_array($arr ) if $arr exists ?

true 

false

 null

SHOW ANSWER

What is the return value for is_array($arr ) if $arr doesnot exists ?

 false 

true 

null

SHOW ANSWER

What will be the value displayed if is_array() is true

 true 

 false

SHOW ANSWER

Function that is an alternative for the function current( )

pos( ) 

position( ) 

 no alternative

SHOW ANSWER

Syntax for the function pos( )

pos($arrayname); 

pos(arrayname); 

 pos($arrayname,index value);

SHOW ANSWER

What will be the output for $a=array(12,43,56,7);

       foreach($a as $d)

                 {echo $d;}

 1243567  

 1243657 

1234567

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