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

Function beginsWith

tools/common_functions.php:46–52  ·  view source on GitHub ↗

returns true if $string begins with $begin, return false otherwise

($string, $begin)

Source from the content-addressed store, hash-verified

44
45/// returns true if $string begins with $begin, return false otherwise
46function beginsWith($string, $begin) {
47 if(substr($string, 0, strlen($begin)) == $begin)
48 {
49 return true;
50 }
51 return false;
52}
53
54/// returns true if $string ends with $end, return false otherwise
55function endsWith($string, $end) {

Callers 3

parseTestFileFunction · 0.85
parseSQLFileFunction · 0.85
checker.phpFile · 0.85

Calls 1

substrFunction · 0.50

Tested by

no test coverage detected