Source Code:
(back to article)
<?php $string = '_example'; if (substr($string, 0, 1) == '_') { echo 'The string starts with an underscore.'; } else { echo 'The string does not start with an underscore.'; }
Result:
Report an issue