Go to: Synopsis. Return value. Related. MEL examples.
string stringRemovePrefix(string $object, string $prefix )
None
Variable Name | Variable Type | Description |
---|---|---|
$object | string | The input string. |
$prefix | string | The string to be removed from the beginning of $object. |
stringRemovePrefix( "a", "" ); // ,Result:, a // size( stringRemovePrefix( "", "a" ) ); // ,Result:, 0 // stringRemovePrefix( "aa", "a" ); // ,Result:, a // stringRemovePrefix( "a", "___" ); // ,Result:, a // stringRemovePrefix( "a", "abc" ); // ,Result:, a // size( stringRemovePrefix( "a", "a" ) ); // ,Result:, 0 //