Skip to content

Instantly share code, notes, and snippets.

@benfurfie
Created June 24, 2019 12:36
Show Gist options
  • Save benfurfie/7b9c99636be2493c85138373036533fb to your computer and use it in GitHub Desktop.
Save benfurfie/7b9c99636be2493c85138373036533fb to your computer and use it in GitHub Desktop.
<?php
public function pluck($value, $params, $context)
{
if (!is_array($value)) {
return $value;
}
return array_pluck($value, $params[0]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment