description max 50 symbols in php code example Example: php trim string if longer than substr($str,0,50);