Ok I am trying to make a shortend down version of a product description to put on my sections. So far I have this.
this works fine and generated 150 letters however it never finishes on the last word it finishes half way through a word. Does anyone know how I can make it finish off the word then end
Solution,
Code:
<actinic:block php="true" > $desc = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />'; $desc1 = substr($desc, 3,150); echo "$desc1...."; </actinic:block>
Solution,
Code:
<actinic:block php="true" > $desc = '<actinic:variable encoding="perl" name="ProductDescription" selectable="false" />'; $desc1 = explode(substr($desc, 3,150)); echo "$desc1...."; </actinic:block>
Comment