SyntaxFix
Write A Post
Hire A Developer
Questions
$variable[0] != "_"
In PHP you can get particular character of a string with array index notation. $variable[0] is the first character of a string (if $variable is a string).
$variable[0]