Return to Snippet

Revision: 2396
at February 9, 2007 14:37 by drwitt


Updated Code
function String_Begins_With($needle, $haystack {
 return (substr($haystack, 0, strlen($needle))==$needle);
}

Revision: 2395
at February 8, 2007 04:50 by drwitt


Initial Code
function String_Begins_With($needle, $subject) {
 return (substr($subject, 0, strlen($needle))==$needle);
}

Initial URL

                                

Initial Description

                                

Initial Title
String_Begins_With

Initial Tags
php, function

Initial Language
PHP