(9)php session处理方面的常用函数
session_cache_expire — Return current cache expire
session_cache_limiter — Get and/or set the current cache limiter
session_commit — session_write_close() 的别名
session_decode — Decodes session data from a string
session_destroy — Destroys all data registered to a session
session_encode — 将当前会话数据编码为一个字符串
session_get_cookie_params — Get the session cookie parameters
session_id — Getand/orset the currentsession id
session_is_registered — Find out whether a global variable is registered in a session
session_module_name — Getand/orset the currentsessionmodule
session_name — Getand/orset the currentsession name
session_regenerate_id — Update the currentsession id with a newly generated one
session_register — Register one or more global variables with the currentsession
session_save_path — Getand/orset the currentsession save path
session_set_cookie_params — Set the session cookie parameters
session_set_save_handler — Sets user-levelsession storage functions
session_start — Initialize session data
session_unregister — Unregister a global variable from the currentsession
session_unset — Free allsession variables
session_write_close — Writesession data andendsession
(10)php字符串处理常用的函数
addcslashes — 以 C 语言风格使用反斜线转义字符串中的字符
addslashes — 使用反斜线引用字符串
bin2hex — 将二进制数据转换成十六进制表示
chop — rtrim() 的别名
chr — 返回指定的字符
chunk_split — 将字符串分割成小块
count_chars — 返回字符串所用字符的信息
crc32 — 计算一个字符串的 crc32 多项式
crypt — One-way string encryption (hashing)
echo — Output oneor more strings
explode — 使用一个字符串分割另一个字符串
fprintf — Write a formatted stringtoa stream
get_html_translation_table — Returns the translation table used by htmlspecialchars() and htmlentities()
hebrev — Convert logical Hebrew textto visual text
hebrevc — Convert logical Hebrew textto visual textwith newline conversion
html_entity_decode — Convert all HTML entities to their applicable characters
htmlentities — Convert all applicable charactersto HTML entities
htmlspecialchars_decode — Convert special HTML entities back tocharacters
htmlspecialchars — Convert special charactersto HTML entities
implode — Join array elements withastring
join — 别名 implode()
levenshtein — Calculate Levenshtein distance between two strings
localeconv — Get numeric formatting information
ltrim — Strip whitespace (or other characters) fromthe beginning ofastring
md5_file — Calculates the md5 hash ofa given file
md5 — Calculate the md5 hash ofastring
metaphone — Calculate the metaphone key ofastring
money_format — Formats anumberasa currency string
nl_langinfo — Query language and locale information
nl2br — Inserts HTML line breaks before all newlines inastring
number_format — Format anumberwith grouped thousands
ord — Return ASCII valueofcharacter
parse_str — Parses thestringinto variables
print — Output astring
printf — Output a formatted string
quoted_printable_decode — Convert a quoted-printable stringtoan8 bit string
quotemeta — Quote meta characters
rtrim — Strip whitespace (or other characters) fromtheendofastring
setlocale — Set locale information
sha1_file — Calculate the sha1 hash ofafile
sha1 — Calculate the sha1 hash ofastring
similar_text — Calculate the similarity between two strings
soundex — Calculate the soundex key ofastring
sprintf — Return a formatted string
sscanf — Parses input fromastring according toaformat
str_getcsv — Parse a CSV stringintoan array
str_ireplace — Case-insensitive versionof str_replace().
str_pad — Pad astringtoa certain lengthwith another string
str_repeat — Repeat astring
str_replace — Replace all occurrences ofthe search stringwiththe replacement string
str_rot13 — Perform the rot13 transform onastring
str_shuffle — Randomly shuffles astring
str_split — Convert astringtoan array
str_word_count — Return information about words used inastring
strcasecmp — Binary safe case-insensitive string comparison
strchr — 别名 strstr()
strcmp — Binary safe string comparison
strcoll — Locale based string comparison
strcspn — Find lengthof initial segment not matching mask
strip_tags — Strip HTML and PHP tags fromastring
stripcslashes — Un-quotestring quoted with addcslashes()
stripos — Find position offirst occurrence ofacase-insensitive string
stripslashes — Un-quotestring quoted with addslashes()
stristr — Case-insensitive strstr()
strlen — Get stringlength
strnatcasecmp — Case insensitive string comparisons usinga “natural order” algorithm
strnatcmp — String comparisons usinga “natural order” algorithm
strncasecmp — Binary safe case-insensitive string comparison ofthefirst n characters
strncmp — Binary safe string comparison ofthefirst n characters
strpbrk — Search astringforanyofasetofcharacters
strpos — Find position offirst occurrence ofastring
strrchr — Find thelast occurrence ofacharacterinastring
strrev — Reverse astring
strripos — Find position oflast occurrence ofacase-insensitive stringinastring
strrpos — Find position oflast occurrence ofacharinastring
strspn — Find lengthof initial segment matching mask
strstr — Find first occurrence ofastring
strtok — Tokenize string
strtolower — Make astring lowercase
strtoupper — Make astring uppercase
strtr — Translate certain characters
substr_compare — Binary safe optionally case insensitive comparison of2 strings fromanoffset, up tolengthcharacters
substr_count — Count thenumberof substring occurrences
substr_replace — Replace textwithina portion ofastring
substr — Return part ofastring
trim — Strip whitespace (or other characters) fromthe beginning andendofastring
ucfirst — Make astring’s firstcharacter uppercase
ucwords — Uppercase thefirstcharacterofeachwordinastring
vfprintf — Write a formatted stringtoa stream
vprintf — Output a formatted string
vsprintf — Return a formatted string
wordwrap — Wraps astringtoa given numberofcharactersusingastring break character