function _startsWith in Media crop 7
Helper function for checking if a string starts with a substring.
1 call to _startsWith()
File
- ./
media_crop.module, line 1135 - Media crop primary module file.
Code
function _startsWith($haystack, $needle) {
$length = strlen($needle);
return substr($haystack, 0, $length) === $needle;
}