classes/phing/util/StringHelper.php
public static function startsWith($check, $string)
    {
        if ($check === "" || $check === $string) {
            return true;
        } else {
            return strpos($string, $check) === 0;
        }
    }
public static function startsWith($check, $string)
    {
        if ($check === "" || $check === $string) {
            return true;
        } else {
            return strpos($string, $check) === 0;
        }
    }
public static function startsWith ( $ check , $ string ) { if ( $ check === "" || $ check === $ string ) { return true ; } else { return strpos ( $ string , $ check ) === 0 ; } }
tests if a string starts with a given string

@param $check
@param $string

@return bool
tests if a string starts with a given string