I'm working with codeIgniter, and when I use PHP function array_map
, it shows a syntax error, but the code is working fine. Is array_map
a deprecated function?
Why is this happening?
Should I avoid using array_map
? Thanks in advance.
As Explosion Pills mentioned in his comment
You can only define a function like that in PHP 5.3+.
so you should update your PHP interpreter in eclipse. and to do that here's a post that will help you. PHP interpreter for eclipse.