title: Problems with LONG NAMES (PHP): how to place 3 DOTS (…) at the end of a fixed SPACE LENGTH
body: <p>We are having difficulties displaying <code>LONG NAMES</code> on our website and would need help urgently.</p>
  
  <p>We actually need to place IMAGE NAMES under IMAGES that have a <code>FIXED WIDTH</code>.  Because image names are sometimes longer than the image width, we don’t want to display the complete name on too many lines because it would not look nice.</p>
  
  <p>We then either want to display the names on 1 (or 2) line(s) maximum (depending on the page).</p>
  
  <p>When the NAME IS LONGER than 1 (or 2) line(s), we would like to CUT THE IMAGE NAME and place 3 DOTS (…) at the end of the line so that the third dot would reach the end of the image.</p>
  
  <p>We have tried to find a solution, but defining a string length is not one of them, because if we define a limit of for example 10 characters then put the 3 dots afterwards, it will not solve the problem since all characters don’t have the same length:</p>
  
  <p>Example 1: AAAAAAAAAA </p>
  
  <p>Example 2: IIIIIIIIII</p>
  
  <p>This solution is inappropriate since the 3 dots will never be placed at the same place (at the end of the image)</p>
  
  <p>Does anyone have a solution?</p>
  
  <p>We would really appreciate your help.</p>
  
  <p>Thanks a lot.</p>