Go to: Synopsis. Return value. Related. MEL examples.
 
string[] stringArrayRemovePrefix(string $objects[], string $prefix ) 
	 
None
| Variable Name | Variable Type | Description | 
|---|---|---|
| $objects | string[] | The input string array. | 
| $prefix | string | The string to be removed from the beginning of each item in $objects. | 
 stringArrayRemovePrefix( {}, "+++" );
 // ,Result:,   // 
 stringArrayRemovePrefix( { "a", "b", "c" }, "" );
 // ,Result:, a b c // 
 stringArrayRemovePrefix( { "a", "b", "c" }, "***" );
 // ,Result:, a b c // 
 stringArrayRemovePrefix( { "***a", "***b", "***c" }, "***" );
 // ,Result:, a b c // 
 stringArrayRemovePrefix( { "***a", "+++b", "---c" }, "***" );
 // ,Result:, a +++b ---c // 
 stringArrayRemovePrefix( { "***a", "", "---c" }, "***" );
 // ,Result:, a  ---c //