Function Reference/wp array slice assoc
Description
Extract a slice of an array, given a list of keys
Usage
<?php wp_array_slice_assoc( $array, $keys ) ?>
Parameters
- $array
- (array) (required) The original array
- Default: None
- $keys
- (array) (required) The list of keys
- Default: None
Return Values
- (array)
- The array slice
Examples
Notes
Change Log
Since: 3.1.0
Source File
wp_array_slice_assoc() is located in /wp-includes/functions.php.
Related