Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]

Method has_prefix()


Method has_prefix

int has_prefix(string|object s, string prefix)

Description

Returns 1 if the string s starts with prefix , returns 0 (zero) otherwise.

When s is an object, it needs to implement lfun::_sizeof() and lfun::`[] .

See also

has_suffix() , has_value() , search()