I\'m trying to get an array of objects with data from my database into jquery to render on a website.
ex: example.php
You need call testFunction() in example.php
testFunction()
example = 'test'; return json_encode($data); } echo testFunction(); ?>