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
  6. &#945; - alpha
  7. &#946; - beta
  8. &#947; - gamma
  9. &#948; - delta
  10. &#949; - epsilon
  11. &#950; - zeta
  12. &#951; - eta
  13. &#952; - theta
  14. &#953; - iota
  15. &#954; - kappa
  16. &#955; - lamda
  17. &#956; - mu
  18. &#957; - nu
  19. &#958; - xi
  20. &#959; - omikron
  21. &#960; - pi
  22. &#961; - rho
  23. &#962; - sigma
  24. &#964; - tau
  25. &#965; - upsilon
  26. &#966; - phi
  27. &#967; - chi
  28. &#968; - psi
  29. &#969; - omega
  30. EOT;
  31.  
  32. $u = new I18N_UnicodeString(nl2br($text)'HTML');
  33. echo $u->toUtf8String();
  34. ?>

Documentation generated on Mon, 11 Mar 2019 13:55:08 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.