/phputf8/native/core.php
Description
Constants
UTF8_CORE = TRUE
(line 12)
Define UTF8_CORE as required
Functions
UTF-8 aware alternative to strpos
Find position of first occurrence of a string Note: This will get alot slower if offset is used Note: requires utf8_strlen amd utf8_substr to be loaded
mixed
utf8_strpos
(string $str, string $needle, [integer $offset = NULL])
- string $str: haystack
- string $needle: needle (you should validate this with utf8_is_valid)
- integer $offset: offset in characters (from left)
UTF-8 aware alternative to strrpos
Find position of last occurrence of a char in a string Note: This will get alot slower if offset is used Note: requires utf8_substr and utf8_strlen to be loaded
mixed
utf8_strrpos
(string $str, string $needle, [integer $offset = NULL])
- string $str: haystack
- string $needle: needle (you should validate this with utf8_is_valid)
- integer $offset: (optional) offset (from left)
UTF-8 aware alternative to substr
Return part of a string given character offset (and optionally length) Note: supports use of negative offsets and lengths but will be slower when doing so
mixed
utf8_substr
(string $str, integer $offset, [integer $length = NULL])
- string $str
- integer $offset: number of UTF-8 characters offset (from left)
- integer $length: (optional) length in UTF-8 characters from offset
Documentation generated on Sat, 14 Nov 2009 11:11:56 +0000 by phpDocumentor 1.3.1


