Skip to content

Instantly share code, notes, and snippets.

Avatar

Kees Meijer keesiemeijer

View GitHub Profile
@kovshenin
kovshenin / array-callables.php
Created Nov 17, 2015
Some array callables for WordPress
View array-callables.php
<?php
function __array_append( $item ) {
return function( $array ) use ( $item ) {
$array[] = $item;
return $array;
};
}
function __array_set( $key, $value ) {
return function( $array ) use ( $key, $value ) {