Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: utf8

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5
Source code for file /phputf8/strrev.php

Documentation is available at strrev.php

  1. <?php
  2. /**
  3. @version $Id: strrev.php,v 1.1 2006/02/25 13:50:17 harryf Exp $
  4. @package utf8
  5. @subpackage strings
  6. */
  7.  
  8. //---------------------------------------------------------------
  9. /**
  10. * UTF-8 aware alternative to strrev
  11. * Reverse a string
  12. @param string UTF-8 encoded
  13. @return string characters in string reverses
  14. @see http://www.php.net/strrev
  15. @package utf8
  16. @subpackage strings
  17. */
  18. function utf8_strrev($str){
  19.     preg_match_all('/./us'$str$ar);
  20.     return join('',array_reverse($ar[0]));
  21. }

Documentation generated on Mon, 05 Mar 2007 21:27:19 +0000 by phpDocumentor 1.3.1