Go to: Synopsis. Return value. Related. MEL examples.
 
string[] stringArrayAddPrefix(string $array[], string $prefix ) 
	 
None
| Variable Name | Variable Type | Description | 
|---|---|---|
| $array | string[] | The string array. | 
| $prefix | string | The string to append to the beginning of each element in $array. | 
 stringArrayAddPrefix( { "a", "b", "c" }, ">" );
 ,Result:, >a >b >c // 
 stringArrayAddPrefix( { "a", "b", "c" }, "___" );
 ,Result:, ___a ___b ___c // 
 
 string $objs[] = { "a", "b", "c" };
 stringArrayAddPrefix( $objs, "***" );
 print $objs;
 ***a
 ***b
 ***c