How can you insert javascript in php code?

Answers were Sorted based on User's Feedback



How can you insert javascript in php code?..

Answer / bnvs kishore.

<?php
//php coding.
?>
<script langauge="javascript">
//javascript coding.
</javascript>
<?php
//php coding.
?>

Is This Answer Correct ?    15 Yes 22 No

How can you insert javascript in php code?..

Answer / tamil selvan

<?php
echo <script type="text/javascript">
</script>
?>

Is This Answer Correct ?    24 Yes 68 No

How can you insert javascript in php code?..

Answer / tejas

<?
<script language='javascript'>

</script>

?>

Is This Answer Correct ?    38 Yes 85 No

Post New Answer

More PHP Interview Questions

How many php based companies in bangalore and chennai and over all india ? most of the persons saying for 2 years and 3 years they will be getting less than 15k per month how far is it true ? is it good scope for experience people can any one tell the exact experience pay for php developers one yr experience how much sal we expect ? two yr experience how much sal we expect ? three yr expereince how much sal we expect ? please kindly reply to the above questions as an experts you only please kindly judge and tell your practical experience in PHP ?

3 Answers  


What is cookies? How to create cookies in php?

0 Answers  


Why namespace is used in php?

0 Answers  


What is a trait in php?

0 Answers  


Explain different sorting function in php?

0 Answers  






What is abstract class in php?

0 Answers  


What is the functionality of the function strstr and stristr?

2 Answers  


Which function is used in php to count the total number of rows returned by any query?

0 Answers  


Explain scalar type declarations in php7?

0 Answers  


What is PEAR in PHP?

3 Answers  


What is the delimiter syntax is PHP's default delimiter syntax

0 Answers  


What is mysql_real_escape_string used for?

0 Answers  


Categories