Skip to content

PHP code snippet – How to call js function from ?

// The most basic method
<?php
echo '<script type="text/javascript">',
     'someJsFunc();', // Or Whatever
     '</script>';
?>
  
// However, if what you are trying to achieve requires more complexity,
// You might be better off adding the V8JS module, see link below
See also  Python code snippet - How to save all countries from a list in a database ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.