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
Tell me what kind of things have you done on the social side?
Are php sessions secure?
Tell me what are sql injections, how do you prevent them and what are the best practices?
Tell me what's the difference between include and require?
Tell me will a comparison of an integer 12 and a string "13" work in php?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
What is the difference between explode() and split() functions?
Explain Type juggling?
What is whitespace in html?
Distinguish between urlencode and urldecode?
what is PDO?
What is the use of mysql_fetch_assoc in php?
Tell me how can we define a variable accessible in functions of a php script?
Tell me how to find the position of the first occurrence of a substring in a string?
What is an array in php?