Search results for: "array", 46 result(s).

[Snippet] Generating an array with the same keys and values with PHP

[Snippet] Get a random value from an array created on the fly

[Snippet] Modifying array values with array_map and an anonymous function

[Snippet] Sorting an array by descending numerical value

[Snippet] Using array_reduce with a closure to extract a result from an array

[Snippet] Creating a two dimensions array with PHP

[Snippet] Getting the first item of an array with PHP