array_pop() pops and returns the last value of the array, shortening the array by one element. If array is empty (or is not an array), NULL will be returned.
אזהרה |
פונקציה זו עשוייה להחזיר FALSE אך כמו כן, עשוייה להחזיר ערך זהה ל FALSE במשפט התנייה פשוט. יש להשתמש באופרטור === בבדיקת הערך המוחזר מפונקציה זו. |
See also array_push(), array_shift(), and array_unshift().