title: deleting last array value ? php
body: <p>1 question type</p>
  
  <pre><code>$transport = array('foot', 'bike', 'car', 'plane');
  </code></pre>
  
  <p>can i delete the plane ?
  is there a way ? </p>
  
  <p>2 question type</p>
  
  <pre><code> $transport = array('', 'bike', 'car', ''); // delate the last line
   $transport = array('', 'bike', 'car', 'ferrari'); // dont the last line
   $transport = array('ship', 'bike', 'car', 'ferrari'); // dont the last line
  </code></pre>
  
  <p>is there a easy way to delete the last array " if last array value is empty then delete " if not empty then don't delete ? but not to delete the first array ?</p>