echo a javascript variable in php code example Example: javascript variable store in php <script> var a="Hello"; </script>