Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. $test_array = [123 => ['name' => 'foo'], 234 => ['name' => 'bar']];
  2.  
  3. $return_value = Hash::extract($test_array, '{n}.[text=/foo/]');
Add Comment
Please, Sign In to add comment