如果我有这样的javascript:
<javascript>
function myvalue()
{
var a = 3;
}
</javascript>
Run Code Online (Sandbox Code Playgroud)
如何a从函数中获取变量的值.所以,我可以在php代码中执行操作,如下所示:
<?php
$b = 1;
$c = $b + a (variabel a from the function);
echo $c; // return 3
?>
Run Code Online (Sandbox Code Playgroud)
非常感谢你