MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / endsWith

Function endsWith

tools/common_functions.php:55–61  ·  view source on GitHub ↗

returns true if $string ends with $end, return false otherwise

($string, $end)

Source from the content-addressed store, hash-verified

53
54/// returns true if $string ends with $end, return false otherwise
55function endsWith($string, $end) {
56 if(substr($string,-1*strlen($end)) == $end)
57 {
58 return true;
59 }
60 return false;
61}
62
63/// returns the prefix of length $length of string $string
64function prefix($string, $length) {

Callers 1

checker.phpFile · 0.85

Calls 1

substrFunction · 0.50

Tested by

no test coverage detected