Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if string ends with

function startsWith( $haystack, $needle ) {
     $length = strlen( $needle );
     return substr( $haystack, 0, $length ) === $needle;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #string #ends
ADD COMMENT
Topic
Name
2+6 =