english/libraries/joomla/utilities/string.php
/**
	 * UTF-8 aware alternative to substr
	 * Return part of a string given character offset (and optionally length)
	 *
	 * @param   string   $str     String being processed
	 * @param   integer  $offset  Number of UTF-8 characters offset (from left)
	 * @param   integer  $length  Optional length in UTF-8 characters from offset
	 *
	 * @return  mixed string or FALSE if failure
	 *
	 * @see http://www.php.net/substr
	 * @since   11.1
	 */
UTF-8 aware alternative to substr
Return part of a string given character offset (and optionally length)

@param   string   $str     String being processed
@param   integer  $offset  Number of UTF-8 characters offset (from left)
@param   integer  $length  Optional length in UTF-8 characters from offset

@return  mixed string or FALSE if failure


UTF - 8 aware alternative to substr Return part of a string given character offset ( and optionally length ) @param string $str String being processed @param integer $offset Number of UTF - 8 characters offset ( from left ) @param integer $length Optional length in UTF - 8 characters from offset @return mixed string or FALSE if failure
public static function substr($str, $offset, $length = FALSE)
	{
		if ($length === FALSE) {
			return utf8_substr($str, $offset);
		} else {
			return utf8_substr($str, $offset, $length);
		}
	}
public static function substr ( $ str , $ offset , $ length = FALSE ) { if ( $ length === FALSE ) { return utf8_substr ( $ str , $ offset ) ; } else { return utf8_substr ( $ str , $ offset , $ length ) ; } }
UTF-8 aware alternative to substr
 Return part of a string given character offset (and optionally length)
UTF - 8 aware alternative to substr Return part of a string given character offset ( and optionally length )