How to check if a string starts with a particular character in PHP?
You can use the
substr
function in php and find the first character is exist in string or notif (substr('_abcdef', 0, 1) === '_') { ... }
Comments
Post a Comment