gpt4 book ai didi

php - array_shift : Only variables should be passed by reference error in php

转载 作者:行者123 更新时间:2023-12-03 18:19:30 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Only variables should be passed by reference

(12 个回答)


6年前关闭。




我有一个错误:
严格的标准:只有变量应该通过引用传递

 $string =  array_shift(array_keys($_REQUEST));

我该如何纠正?

最佳答案

$tmpArray = array_keys($_REQUEST);
$string = array_shift($tmpArray);

需要临时数组:(

关于php - array_shift : Only variables should be passed by reference error in php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30392047/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com