PHP array_pop () array function pops the last cell of the array (out of the stack) _php tutorial

Source: Internet
Author: User
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 ') ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.