# Sorry to bother, found the issue: I just needed to use return instead of echo to return data in PHP.