Hello, I am new to php and trying to understand it. I want to know if someone could tell me how to limit the output of an echo $value. Below is the code and I need to limit the output to about 45 characters and if possible add … to the end to show there is more text.
[php]<?php if($value[‘locationbold’] == ‘1’)
echo “”.$value[‘location’]." ";
else
echo $value[‘location’]." ";?>[/php]