Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $theResults = $metaweb->read($myQuery);
- //$data = json_decode($theResults, true);
- //$data = $data['result'];
- $result = array();
- function iterateArray(){
- }
- foreach ($theResults as $key => $person) {
- $keyName = str_replace('/', '_', substr($person['id'][0], 1));
- $result[$keyName] = array();
- $resData = new RecursiveIteratorIterator(new RecursiveArrayIterator($theResults[$key]));
- foreach ($resData as $resKey => $resVal)
- if(is_array($resVal)){
- $result[$keyName][$resKey] = $resVal;
- foreach()
- } else {
- $result[$keyName][$resKey] = $resVal;
- }
- }
Add Comment
Please, Sign In to add comment