<SCRIPT LANGUAGE="JavaScript">
<!--
function test() {
return '자바스크립트에서 가져왔다zzzzz';
}
//-->
</SCRIPT>
<?php
ob_start();
echo "<script>var a = test(); document.write(a);</script>";
$a = ob_get_clean();
echo $a;
?>
<SCRIPT LANGUAGE="JavaScript">
<!--
function test() {
return '자바스크립트에서 가져왔다zzzzz';
}
//-->
</SCRIPT>
<?php
ob_start();
echo "<script>var a = test(); document.write(a);</script>";
$a = ob_get_clean();
echo $a;
?>