Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
function drop_2($drop_var2) { ... } function drop_3($drop_var3) { ... } function drop_4($drop_var4) { ... }
如何在 drop_3 函数中使用 $drop_var2?+ $drop_var2 和 $drop_var3 在 drop_4 函数中?
你可以声明一个全局变量
function drop_4($drop_var4) { global $drop_var2,$drop_3; ... }