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>
Also in PHP:
- current date display in php
- composer global in laravel means
- data() php
- +1 day to date in php
- artisan route list
- cahe laravel
- convert html code php
- datetime print format php
- fetch visitor latitude and longitude using ipaddress php
- day of week echo $(date +%F.%H%M%S)
- convert date time to timestamp php
- CODEIGNITER codeigniter 4 auth
- all capital in php
- 3 elements in do while loop php
- 3 letter month abbreviations in php date format
- find contact page url by domain list php
- check that array key exists
- check if array__key exists
- acf get sub field
- array flat php
- char to uppercase php
- codeigniter update
- creat new folder with php
- drop down list display only seleted item only