Easy Tutorial
❮ Func Filesystem Fflush Func Filesystem Fileinode ❯

PHP array_fill_keys() Function

Complete PHP Array Reference Manual

Example

Fill an array with values, specifying keys:


Definition and Usage

The array_fill_keys() function fills an array with values, specifying keys.


Syntax

Parameter Description
keys Required. An array whose values will be used as keys for the filled array.
value Required. Specifies the value to use for filling the array.

Technical Details

Return Value: Returns the filled array.
PHP Version: 5.2+
--- ---
❮ Func Filesystem Fflush Func Filesystem Fileinode ❯