1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a PHP version of xen:helper snippet?

Discussion in 'XenForo Development Discussions' started by Jaxel, Apr 2, 2011.

  1. Jaxel

    Jaxel Well-Known Member

    Currently I am using strlen and substr to create snippets... but its taking a lot of server resources. Is there a better way?
     
  2. Jaxel

    Jaxel Well-Known Member

    Code:
    $post['message'] = XenForo_Helper_String::wholeWordTrim($post['message'], $options['recentnews_truncate']);
     
    Darkimmortal likes this.

Share This Page