Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dot = function($key) {
- return function($arr) use ($key) {
- return $arr[$key];
- };
- };
- $l_id = $dot('l_id');
- $p_id = $dot('p_id');
- return json_encode(array(
- 'v' => $l_id($records),
- 'f'=> $p_id($records);
- ));
Advertisement
Add Comment
Please, Sign In to add comment