php 调用未定义的函数 array_column()
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18536760/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Call to undefined function array_column()
提问by Dereje Goshu
I am now getting the following error message when trying to run my php(codeigniter framework) code Fatal error: Call to undefined function array_column()
我现在在尝试运行我的 php(codeigniter framework) 代码时收到以下错误消息致命错误:调用未定义的函数 array_column()
回答by Pascalc
http://php.net/manual/fr/function.array-column.phpThis is a function in PHP 5.5+, you are most likely using an older version of PHP
http://php.net/manual/fr/function.array-column.php这是 PHP 5.5+ 中的一个函数,您很可能使用的是旧版本的 PHP
回答by Jasper
That function is only for PHP 5.5+, so you probably have the wrong version of PHP.
该功能仅适用于 PHP 5.5+,因此您可能使用了错误的 PHP 版本。