Your question is unclear.
Please provide more information, and be as specific as possible.
- What do you want to accomplish?
- What have you already tried?
- What problems did you encounter?
Also, please be sure that you have included all relevant code and/or a link to the page in question.
PHP writes javascript the same way it writes html.
PHP Code:
<?php
$js = '<script>alert("Javascript!");</script>';
print $js;
?>
Your question, however, is very vague.
Is this a script you are writing? You need to learn more about PHP.
Is this a script someone else wrote? Ask them how to integrate your javascript.
Is this a CMS (like Wordpress or Joomla)? You need to learn about how that CMS works (and probably more about PHP in general as well).
I'm sorry I can't offer anything more constructive, but you haven't really asked a question here - you've just stated that you don't know how to do something, without offering any context or clue as to your goals or specific problem.
If you're looking for someone to do this for you, you should post in the Paid Work forum.
Bookmarks