Answer Posted / vivek srivastava
You can write Java Script in PHP in a very simple way so as
I did:
<?php
some php code...
?>
<script type="text/javascript">
function someFun()
{
function code....
}
</script>
<?php
some php code...
?>
| Is This Answer Correct ? | 72 Yes | 18 No |
Post New Answer View All Answers
What is the difference between htmlentities and htmlspecialchars in php?
What is overloading in php?
How would you determine the size of a file in php?
What php framework does wordpress use?
What is $$ in php?
What software is required for php?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
What is the difference between core php and php?
What are the three parts of an http request?
Is php strongly typed?
What is the function of trim?
What is htmlspecialchars?
Explain PHP looping?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is strlen function in php?