Check version: (PHP 5 >= 5.3.0)
You obviously have a lower version. :)
Use phpversion() to quickly check which version you have.
As noted in the comments, this function is trivially easy to replicate:
if(function_exists('lcfirst') === false) { function lcfirst($str) { $str[0] = strtolower($str[0]); return $str; } }
You can throw the above code somewhere in the project library / utilities file and it will not break when / if you upgrade to 5.3.0 along the way.
Paolo bergantino
source share