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/strcasecmp.php

Documentation is available at strcasecmp.php

  1. <?php
  2. /**
  3. * @version $Id: strcasecmp.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 strcasecmp
  11. * A case insensivite string comparison
  12. * Note: requires utf8_strtolower
  13. * @param string 
  14. * @param string 
  15. * @return int 
  16. * @see http://www.php.net/strcasecmp
  17. * @see utf8_strtolower
  18. * @package utf8
  19. * @subpackage strings
  20. */
  21. function utf8_strcasecmp($strX, $strY) {
  22.     $strX = utf8_strtolower($strX);
  23.     $strY = utf8_strtolower($strY);
  24.     return strcmp($strX, $strY);
  25. }

Documentation generated on Mon, 05 Mar 2007 21:26:57 +0000 by phpDocumentor 1.3.1