Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function find_last_order($json_json) {
- $json_assoc = json_decode($json_json);
- $variables = get_object_vars($json_assoc);
- $sets = array_keys($variables);
- $set = $sets[1];
- $sales = $variables[$set][0];
- $sale = get_object_vars($sales);
- $last_order = $sale['internal_code'];
- return $last_order;
- }
Add Comment
Please, Sign In to add comment