title: how to concat two strings in php which are in persian
body: <p>The question is that i have the string of:</p>
  
  <pre><code>$content=$rows["content"];
  </code></pre>
  
  <p>which i retrieved from the data base.The sting is in Persian.<br>
  i want to show the only 150 character.so i used:</p>
  
  <pre><code>$content=substr($content,0,150);
  </code></pre>
  
  <p>and to show that this still continues i need to show 3 dots: "..."
  so i did:</p>
  
  <pre><code>$content.='...';
  </code></pre>
  
  <p>and when i show this string by echo, the 3 dots that i added will appear at the right of the last line.
  but persian is from right to left, so the 3 dots needs to appear in left of the last line.</p>
  
  <p>i tired this one two, but this one didn't worked too</p>
  
  <pre><code>    $content =iconv(mb_detect_encoding($content, mb_detect_order(), true), "UTF-8", $content);
      $content=substr($content,0,150);
      $dot='...';
      $dot =iconv(mb_detect_encoding($dot, mb_detect_order(), true), "UTF-8", $dot);
      $content.=$dot;
  </code></pre>