3 * Defines a set of specialized string functions.
5 * @package PhpMyAdmin-String
6 * @todo May be move this into file of its own
8 interface PMA_StringByte
11 * Returns length of string depending on current charset.
13 * @param string $string string to count
15 * @return int string length
18 public function strlen($string);
21 * Returns substring from string, works depending on current charset.
23 * @param string $string string to count
24 * @param int $start start of substring
25 * @param int $length length of substring
27 * @return string the sub string
29 public function substr($string, $start, $length = 2147483647);
32 * Returns postion of $needle in $haystack or false if not found
34 * @param string $haystack the string being checked
35 * @param string $needle the string to find in haystack
36 * @param int $offset the search offset
38 * @return integer position of $needle in $haystack or false
40 public function strpos($haystack, $needle, $offset = 0);
43 * Make a string lowercase
45 * @param string $string the string being lowercased
47 * @return string the lower case string
49 public function strtolower($string);
52 * Get the ordinal value of a string
54 * @param string $string the string for which ord is required
56 * @return string the ord value
58 public function ord($string);