title: unset last item of array
body: <p>in this code i try to unset first and last item of $status array<br>
  to unset but the last item that i tried place thier pointer in $end <br>
  not unset what can I do for this reason?<br></p>
  
  <pre>
  <code>
  $item[$fieldneedle] = " node_os_disk_danger ";
  $status = preg_split('/_/',$item[$fieldneedle]);
  unset($status[0]);
  $end = & end($status);
  unset($end);
  </code>
  </pre>
  
  <p><br>
  in this example i need <code>os_disk</code></p>