引数の参照渡しで、以下のようにやるとエラーが出ます。以下のやり方では出来ないのでしょうか?(ソースはテスト用で書いたものです)
function test($input) { echo $input; } $arg = 'test_argument'; test(&$arg);
エラー内容:
** Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of test()**

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。