<?php
$arr2=array(22,33,44,55,10,80,8);
echo "array values
are<br>";
foreach ($arr2 as $a)
echo " ".$a;
$pop=array_pop($arr2);
echo"<br>pop out element is ".$pop;
echo "<br>array
values after popping are <br>";
foreach ($arr2 as $a)
echo " ".$a;
?>
Output
array values are
22 33 44 55 10 80 8
pop out element is 8
array values after popping
are
22 33 44 55 10 80
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.