Script functions reference > Script functions in alphabetical order > S > StrLadj

StrLadj
Syntax
StrLadj(str, num_strlen);
str 
num_strlen 
Description
Left-aligns and truncates (or extends) a string to a specified length. If the specified length is greater than the current string length, the string is extended with spaces.
Returns
Left-aligned and truncated (or extended) string according to the specified required length.
Example
$a="Parrot";
$b=strladj($a,10);
Result:
$b="Parrot    "
OpenText StreamServe 5.6 Updated: 2013-03-01