Free PHP Using PHP Jquery tutorial, If you wish, you can use php. js, which ports all PHP functions over to javascript. You can also create a new php file that returns the results of calling your PHP function, and then call that file using AJAX to get the results .