Monday, May 25, 2009

Checks whether $string begins with $search

// Checks whether $string begins with $search
function string_begins_with($string, $search)
{
return (strncmp($string, $search, strlen($search)) == 0);
}
?>

No comments: