WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp array slice assoc

Contents

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