Quantcast
Channel: Otaku No Zoku » arrays
Browsing latest articles
Browse All 5 View Live

PHP shuffle() Function

PHP provides the built-in ability to randomly sort, i.e. shuffle, an array of values in place. The PHP shuffle() function takes a standard array of values and swaps each element randomly with another...

View Article


PHP array_pop() Function

PHP provides incredibly rich and diverse functionality for manipulating arrays. The word "array" and the data type array() in PHP is a bit of a misnomer because the built-in functionality of PHP  is...

View Article


PHP array_push() Function

Even though PHP has an intrinsic array data type you as the programmer have the ability to manipulate arrays in several different ways. PHP can manipulate the array() data type as though it were a...

View Article

PHP array_shift() Function Definition

PHP has a built-in array() data type which can be easily treated as though it were a list or a queue data type. The way to do this is through the use of the array_shift() function which takes the...

View Article

PHP array_shift() With Non-Numeric Keys

The built-in array() data type has many ways that it can be manipulated. One of those ways is through the array_shift() function that treats an array as a queue, taking array elements from the front of...

View Article

Browsing latest articles
Browse All 5 View Live