How do I decrement text, for example if a parsed text consists of 20 charachters and I only want to display 5
like :
thisisaverylongtext becomes thisisavery...
Hi,
Just use substr(), for example:
$text = substr(0,10,$text);
...or if you just want to print out the first 5 characters of a parsed field:
print substr(0,5,$record["SOME-FIELD"]);
Cheers, David.
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi,
Just use substr(), for example:
$text = substr(0,10,$text);
...or if you just want to print out the first 5 characters of a parsed field:
print substr(0,5,$record["SOME-FIELD"]);
Cheers,
David.