CaMykS
1.0-20231201
|
Functions | |
string_isValidIPv4 ($ip, $allow_mask=false) | |
String specific methods. More... | |
string_numberFormat ($string, $decimal=2, $country=null) | |
string_html2Text ($string, $encoding=null) | |
string_text2Html ($string, $encoding=null) | |
string_text2Words ($string, $params=array()) | |
string_replaceEntityChars ($string, $params=array()) | |
string_getAccentuedChars ($params=array()) | |
string_parseSpecialChars ($string, $params=array()) | |
string_getShortenedSentence ($string='', $length=64) | |
string_stripPHPTags ($value, $replace='') | |
string_stripScriptTags ($value, $replace='') | |
string_stripTags ($value, $replace='') | |
string_isUTF8 ($string) | |
string_isBase64 ($string) | |
string_isHTML ($string) | |
string_isURL ($string) | |
string_startsWith ($haystack, $needle, $caseSensitive=false) | |
string_endsWith ($haystack, $needle, $caseSensitive=false) | |
string_getBaseURL ($url='') | |
string_getSymbolicName ($text='', $params=array()) | |
string_encodeToHTML ($text, $flags=null, $encoding=null, $double_encode=null) | |
string_formatIntlPhoneNumber ($number, $prefix='') | |
string_toLower ($string='') | |
string_toUpper ($string='') | |
string_getSimilarBeginning ($s1, $s2) | |
string_escape4Regex ($string='') | |
string_parseNonLetterChars ($string) | |
string_parsePHPTags ($value, $replace='') | |
string_isValidIPv4 | ( | $ip, | |
$allow_mask = false |
|||
) |
String specific methods.
Engine / Tool Library
string | $ip | the ip address to test |
boolean | $allow_mask | allows ip groups like 192.168.*.* |
string_numberFormat | ( | $string, | |
$decimal = 2 , |
|||
$country = null |
|||
) |
Format number string with current language country format.
string | $string | |
integer | $decimal | |
string | $country |
string_html2Text | ( | $string, | |
$encoding = null |
|||
) |
Decode string from html to text.
string | $string | |
string | $encoding |
string_text2Html | ( | $string, | |
$encoding = null |
|||
) |
Encode string from text to html.
string | $string | |
string | $encoding |
string_text2Words | ( | $string, | |
$params = array() |
|||
) |
Return unaccentued words list from html.
string | $string | |
array | $params | - Available parameters are string changecase - void / lower / upper integer minlength string contenttype - text / html string accents - replace / keep |
string_replaceEntityChars | ( | $string, | |
$params = array() |
|||
) |
Return replace entity char by unaccentued chars.
string | $string | |
array | $params | - Available parameters are string/array pattern - containing patterns to complete built-in list string/array replace - containing replacement values to complete built-in list string lastreplace - all last entities are replaced by this value (empty string for no replacement) |
string_getAccentuedChars | ( | $params = array() | ) |
Return accentued chars list.
array | $params | - Available parameters are string listmode - array / string string charmode - text / html |
string_parseSpecialChars | ( | $string, | |
$params = array() |
|||
) |
Return parsed string, accentued chars are replaced by their unaccentued equivalent.
string | $string | |
array | $params | - Available parameters are string/array pattern string/array replace |
string_getShortenedSentence | ( | $string = '' , |
|
$length = 64 |
|||
) |
Return limited version of given sentence.
string | $string | |
integer | $length |
string_stripPHPTags | ( | $value, | |
$replace = '' |
|||
) |
Remove PHP tags from value.
string | $value | |
string | $replace |
string_stripScriptTags | ( | $value, | |
$replace = '' |
|||
) |
Remove Script tags from value.
string | $value | |
string | $replace |
string_stripTags | ( | $value, | |
$replace = '' |
|||
) |
Evolved strip_tags method, may replace tags by another string
string | $value | |
string | $replace |
string_isUTF8 | ( | $string | ) |
Check if given string is UTF8.
string | $string |
string_isBase64 | ( | $string | ) |
Check if given string is base64 encoded.
string | $string |
string_isHTML | ( | $string | ) |
Check if given string is html.
string | $string |
string_isURL | ( | $string | ) |
Check if given string is an URL.
string | $string |
string_startsWith | ( | $haystack, | |
$needle, | |||
$caseSensitive = false |
|||
) |
Check if given string starts with other string.
string | $haystack | |
mixed | $needle | |
boolean | $caseSensitive |
string_endsWith | ( | $haystack, | |
$needle, | |||
$caseSensitive = false |
|||
) |
Check if given string ends with other string.
string | $haystack | |
mixed | $needle | |
boolean | $caseSensitive |
string_getBaseURL | ( | $url = '' | ) |
Return given string base url.
string | $url |
string_getSymbolicName | ( | $text = '' , |
|
$params = array() |
|||
) |
Return symbolic name (url compliant) from given string.
string | $text | |
array | $params |
string_encodeToHTML | ( | $text, | |
$flags = null , |
|||
$encoding = null , |
|||
$double_encode = null |
|||
) |
Encode string to html.
string | $text | |
int | $flags | |
string | $encoding | |
boolean | $double_encode |
string_formatIntlPhoneNumber | ( | $number, | |
$prefix = '' |
|||
) |
Format given phone number.
string | $number | |
string | $prefix |
string_toLower | ( | $string = '' | ) |
Return string all lowercase, including accentuated characters.
string | $string |
string_toUpper | ( | $string = '' | ) |
Return string all uppercase, including accentuated characters.
string | $string |
string_getSimilarBeginning | ( | $s1, | |
$s2 | |||
) |
Return similar strings begining.
string | $s1 | |
string | $s2 |
string_escape4Regex | ( | $string = '' | ) |
Return string escaped for regular expression.
string | $string |
string_parseNonLetterChars | ( | $string | ) |
Return string without non-letter chars.
string | $string |
string_parsePHPTags | ( | $value, | |
$replace = '' |
|||
) |
Remove PHP tags from value.
string | $value | |
string | $replace |