Delete the last element of the array

zhaozj2021-02-16  36

Delete the last element of the array

Use the array_pop in PHP4, the function prototype: Mixed Array_POP (Array Array) Example: '; 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

转载请注明原文地址:https://www.9cbs.com/read-21764.html

New Post(0)