Browse: Home / Classes / Learndash_Arr /

Learndash_Arr::only

Learndash_Arr::only( array $array,  array $keys )

Returns an array with specified keys only.


Description #


Parameters #

$array

(<span class="arrayarray<int|">string,mixed>) (Required) Array.

$keys

(<span class="arrayarray<int|">string>) (Required) Keys.


Return #

(array<int|string,mixed>)


Source #

File: includes/helpers/class-learndash-arr.php


Changelog #

Changelog
Version Description
4.5.0 Introduced.