Delete the last element of the array
Use the array_pop in PHP4, the function prototype: Mixed Array_POP (Array Array) Example: $ Array = array ('php', 'JSP', 'ASP'); $ count = count ($ Array); Echo 'Old:
'; for ($ I = 0; $ I <$ count; $ i ) Echo $ Array [$ I]. '
'; array_pop ($ array); $ COUNT = Count ($ array); echo 'new:
'; for ($ I = 0; $ I <$ count; $ i ) Echo $ Array [$ I]. '
';?> Output results : Old: PHP JSP ASP New: PHP JSP