Search

hi,

How to display the First N Words in symphony.

I am using substring() ( ) for getting n words, but the output of the last word is showing cut (e.g: like instead of word "displaying" it shows "displa" ). i need to display the whole last word.

thanks

The Truncate utilities should be able to help you out here!

hi ,

thanks a lot.. it is working

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details