Bump version to 3.3.6
[kohana-core.git] / utf8 / strrev.php
blob6e2f0caccd3f60f72fdcc17a0bd2a7eff6457c95
1 <?php defined('SYSPATH') OR die('No direct script access.');
2 /**
3 * UTF8::strrev
5 * @package Kohana
6 * @author Kohana Team
7 * @copyright (c) 2007-2012 Kohana Team
8 * @copyright (c) 2005 Harry Fuecks
9 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
11 function _strrev($str)
13 if (UTF8::is_ascii($str))
14 return strrev($str);
16 preg_match_all('/./us', $str, $matches);
17 return implode('', array_reverse($matches[0]));