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