Return to Snippet

Revision: 6019
at April 21, 2008 12:50 by stancell


Initial Code
function string_begins_with($string, $search)
{
    return (strncmp($string, $search, strlen($search)) == 0);
}

.

Initial URL


Initial Description


Initial Title
Check whether string begins with given string

Initial Tags


Initial Language
PHP