I18N_UnicodeString
[ class tree: I18N_UnicodeString ] [ index: I18N_UnicodeString ] [ all elements ]

Source for file example1.php

Documentation is available at example1.php

  1. <?php
  2. require_once('I18N/UnicodeString.php');
  3.  
  4. $text = <<<EOT
  5. The Greek Alphabet<br />
  6. &#945; - alpha<br />
  7. &#946; - beta<br />
  8. &#947; - gamma<br />
  9. &#948; - delta<br />
  10. &#949; - epsilon<br />
  11. &#950; - zeta<br />
  12. &#951; - eta<br />
  13. &#952; - theta<br />
  14. &#953; - iota<br />
  15. &#954; - kappa<br />
  16. &#955; - lamda<br />
  17. &#956; - mu<br />
  18. &#957; - nu<br />
  19. &#958; - xi<br />
  20. &#959; - omikron<br />
  21. &#960; - pi<br />
  22. &#961; - rho<br />
  23. &#962; - sigma<br />
  24. &#964; - tau<br />
  25. &#965; - upsilon<br />
  26. &#966; - phi<br />
  27. &#967; - chi<br />
  28. &#968; - psi<br />
  29. &#969; - omega
  30. </body>
  31. </html>
  32. EOT;
  33.  
  34. $u = new I18N_UnicodeString($text'HTML');
  35. $body $u->toUtf8String();
  36.  
  37. echo <<<EOT
  38. <html>
  39. <head>
  40.      <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
  41. </head>
  42. <body>
  43. $body
  44. </body>
  45. EOT;
  46. ?>

Documentation generated on Mon, 11 Mar 2019 14:39:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.