using Php;

namespace PhpNative {
    public bool str_starts_with_static (string haystack, string needle, string php_file, int php_line) throws Error {
        return haystack.has_prefix (needle);
    }

    public zval str_starts_with_zval (zval haystack, zval needle, string php_file, int php_line) throws Error {
        return zval.boolean (str_starts_with_static (zval_to_string (haystack), zval_to_string (needle), php_file, php_line));
    }
}
