<?php
  $queue = ["first", "second", "third"];
  $removed = array_pop($queue);
  $total = count($queue);
  echo "There are $total values";  // There are 2 values
?>