What will be the output for:
$ar=array(212,413,56,17);
echo reset($ar);
212
0
17
SHOW ANSWERWhat will be the output for :
$sat=array(22,43,56,77,65);
sizeOf($sat);
5
65
4
SHOW ANSWERWhat will be the output for:
$ext=array(22,43,56,77,65);
if(is_array($ext))
{ echo “array exist”;}
else
{echo “dont exist”;}
array exists
array dont exist
true
SHOW ANSWERWhat will be the output for:
$ext=array(22,43,56,77,65);
if(is_array($exit))
{ echo “array exist”;}
else {echo “dont exist”;}
array dont exists
array exists
false
SHOW ANSWERWhat will be the output for :
$arrest=array( ‘cat’,’dog’,’mouse’);
arsort($arrest);
foreach($arrest as $x)
{echo $x;}
‘mouse’’dog’’cat’
catmousedog
‘mousedogcat
SHOW ANSWERGive the output for : $rest=array(34,65,45,98,76);
arsort($rest);
foreach($rest as $s)
{echo $s;}
9876654534
3445657698
Give the output for : rest=array(34,65,45,98,76);
asort($rest);
foreach($rest as $s)
{echo $s; }
3445657698
9876654534
3465459876
SHOW ANSWERWhat will be the output for :
$arrest=array( “cat”,”dog”,”mouse”,”elephant”);
asort($arrest);
foreach($arrest as $x)
{echo $x ;}
catdogelephantmouse
catdogmouseelephant
mouseelephantdogcat
SHOW ANSWERWhat will be the output for:
$var=array(‘Benz’,’Volksvagon’,’Ferrari’);
echo end($var);
Ferrari
Benz
Volksvagon
SHOW ANSWERnext( ) returns value ____________
after the cursor position
at the cursor position
before cursor position
SHOW ANSWERConstruct used to retrieve values in an array
list( )
array( )
key( )
SHOW ANSWERGive the output for :
$rest=array(34,65,45,98,76);
echo count($rest);
5
6
7
SHOW ANSWERThe prev( ) function moves the pointer
back by one
to the last entry in the list
to the last entry in the list
SHOW ANSWER