fork download
  1. <?php
  2.  
  3. $array = ['um', 'dois', 'tres', 'quatro', 'cinco', 'seis'];
  4.  
  5. array_pop( $array );
  6. echo array_pop( $array ).PHP_EOL;
  7. echo array_pop( $array ).PHP_EOL;
  8.  
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
cinco
quatro