1<script type="text/javascript">
2var abc= 'this is text';
3<?php $abc = "<script>document.write(abc)</script>"?>
4</script>
5<?php echo $abc;?>
1<script> document.cookie = "myJavascriptVar = " + myJavascriptVar </script>
2<?php
3 $myPhpVar= $_COOKIE['myJavascriptVar'];
4?>