Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

string stringAddPrefix(string $object, string $prefix )

Return a new string whose contents is the concatenation of $prefix and $object.

Return value

None

Related

stringArrayAddPrefix, stringArrayRemovePrefix, stringRemovePrefix

Arguments

Variable Name Variable Type Description
$objectstringThe input string.
$prefixstringThe string to append to the beginning of $object.

MEL examples

 stringAddPrefix( "a", "" );
 ,Result:, a // 


 print( size( stringAddPrefix( "", "" ) ) );
 ,Result:, 0

 stringAddPrefix( "a", "___" );
 ,Result:, ___a //