Dot dot after txt limit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dot dot after txt limit

    any one help me to create something like this?

    $txt="agmgagmgdptgmgagmgagm.Tgagmga.Mgwpagmgapjgmg a.Dgmjgmgtpag.Agm.Agm";


    if $txt character >10

    then i wanna show 1st 10 txt character . .

    Please help me
    PHP Code:
    /* I don't know everything hehe */ 
    Find me on facebook

    #2
    slice message mate?
    Code:
    $sql = "".htmlspecialchars((strlen($item[5])<11?$item[5]:substr($item[5], 0, 11)));
    $pmmsg2 = getbbcode($sql,$sid, 0);

    Comment


      #3
      PHP Code:
      $txt="agmgagmgdptgmgagmgagm.Tgagmga.Mgwpagmgapjgmg a.Dgmjgmgtpag.Agm.Agm";

      if(
      strlen($text)>10$text substr($text010).' ...';

      echo 
      $text
      Advertise your mobile site for FREE with AdTwirl

      Comment


        #4
        thank you gumslone and WereWolveZ
        PHP Code:
        /* I don't know everything hehe */ 
        Find me on facebook

        Comment


          #5
          ok i had sumething like that before now im stuck lol i want to finish the last word before it cuts and adds the ... any ideas?

          PHP Code:
          foreach ($_SERVER as $server => $value)
          {
          echo 
          "$server is $value<br />";

          Comment

          Working...
          X