我在两个函数之间传递变量有问题.我想将转移变量作为参数,但我不知道如何做到这一点.例如:
function a() { $a = 5; $b = 6; $c = $a + $b; } function b() { echo $c; }
我需要$c从第一个函数a()move到第二个函数b()作为参数变量.可能吗?语法是什么?非常感谢每一个答案.
$c
a()
b()
php variables arguments function
arguments ×1
function ×1
php ×1
variables ×1