public static startsWith ( string $string, string $with, boolean $caseSensitive = true ) : boolean | ||
$string | string | Input string |
$with | string | Part to search inside the $string |
$caseSensitive | boolean | Case sensitive search. Default is true. When case sensitive is enabled, $with must exactly match the starting of the string in order to get a true value. |
리턴 | boolean | Returns true if first input starts with second input, false otherwise |