Copy codeThe Code is as follows: <? Php
/* Function array_pop (): pops up the last unit of the array (output stack)
* 1. Syntax: mixed array_pop (array & array)
* 2. Description: the last unit of the array is displayed, and the length of the array is reduced by one. If array is NULL (or not an array), NULL is returned.
* 3. Notes:
* 3.1,
*/
Echo "************************************** ******************************** <br> ";
$ Arr11 = array ('score 1' => 65, 'score 2' => 25, 'score 3' => 87, 'score 4' => 85, 'score 5' => 45, 'score 6' => 66 );
$ Arr22 = array (a, B, c, d, e );
Echo "array arr11 information :";
Echo "<pre> ";
Print_r ($ arr11 );
Echo "</pre> ";
$ Num = count ($ arr11 );
For ($ I = 0; $ I <$ num; $ I ++ ){
Echo "the last element of the pop-up array is:". array_pop ($ arr11). "<br/> ";
Echo "the array arr11 information after a last element is popped up :";
Echo "<pre> ";
Print_r ($ arr11 );
Echo "</pre> ";
Echo "<br/> ";
}
?>