Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

call php function in js

<script>
  var phpadd= <?php echo add(1,2);?> //call the php add function
  var phpmult= <?php echo mult(1,2);?> //call the php mult function
  var phpdivide= <?php echo divide(1,2);?> //call the php divide function
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #php #function #js
ADD COMMENT
Topic
Name
9+1 =