不明白。
这样?:
<script language=javascript>
   ww=(<?php = $rr ?>)   //得到结果为:ww="welcome to"   
</script>