document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. To get the length of a string:
  2. [code]
  3. $int = $strlen($string);
  4. [/code]
  5.  
  6. To trim a string to a specified length:
  7. [code]
  8. $result = substr($string, 0, 16); // 0 is start, 16 is end
  9. [/code]
');