3
I am using Phreeze PHP to create a CRUD application but I am getting the following message when generating the application, the message is this:
Uninitialized string offset: 0 in Modifier.lcfirst.php at line 16
The page with the code is like this:
function smarty_modifier_lcfirst($s) {
return strtolower( $s{0} ). substr( $s, 1 );
}
The project page, if anyone is interested, is this: Pheeze
What are you passing to the function? It should give this error if you pass an empty string.
– bfavaretto
Usually the solution is
isset()
– rray
Hello @rray and bfavaretto thanks for the tips, I managed to solve with isset().
– adventistapr