Copy CodeThe code is as follows:
/* Function Array_pop (): POPs the last cell of the array (out of the stack)
* 1, Syntax: Mixed array_pop (array &array)
* 2, Description: pops up and returns the last cell of the array, minus one of the array's length. If array is empty (or not an array), NULL is returned.
* 3. Precautions:
* 3.1,
*/
echo "***********************************************************************
";
$arr 11=array (' score 1 ' =>65, ' score 2 ' =>25, ' score 3 ' =>87, ' score 4 ' =>85, ' score 5 ' =>45, ' score 6 ' =>66);
$arr 22=array (a,b,c,d,e);
echo "Array arr11 information:";
echo "
echo "
";
$num =count ($arr 11);
for ($i =0; $i < $num; $i + +) {
echo "pops up the last element of the array as:". Array_pop ($arr 11). "
";
echo "Each time a last element pops up, the array arr11 information:";
echo "
echo "
";
echo "
";
}
?>
http://www.bkjia.com/PHPjc/323848.html www.bkjia.com true http://www.bkjia.com/PHPjc/323848.html techarticle Copy the code as follows:? PHP/* Function Array_pop (): POPs the last cell of the array (out of the stack) * 1, Syntax: Mixed array_pop (array lt;br "; $arr 11=array (' score 1 ' = 65, ' score 2 ') ...