{"id":43,"date":"2008-05-01T10:25:27","date_gmt":"2008-05-01T10:25:27","guid":{"rendered":"http:\/\/tw.newtonstudio.com\/?p=43"},"modified":"2008-05-01T18:14:44","modified_gmt":"2008-05-01T18:14:44","slug":"php-%e7%9a%84-string-function","status":"publish","type":"post","link":"https:\/\/tw.newtonstudio.com\/?p=43","title":{"rendered":"PHP \u7684 STRING FUNCTION"},"content":{"rendered":"<h2>PHP \u7684 STRING FUNCTION<\/h2>\n<p>php \u7684string function \u4e00\u76f4\u662f\u8655\u7406\u5b57\u4e32\u7684\u597d\u5e6b\u624b. \u5c0d\u65bc\u5404\u7a2e\u9700\u6c42\u90fd\u53ef\u4ee5\u5728\u9019\u500b\u5217\u8868\u4e2d\u627e\u5230.<br \/>\n\u4ee5\u4e0b\u5217\u8868\u53d6\u81ea: <a href=\"http:\/\/tw2.php.net\/manual\/en\/ref.strings.php\">http:\/\/tw2.php.net\/manual\/en\/ref.strings.php<\/a><\/p>\n<h2>Table of Contents<\/h2>\n<blockquote><p>addcslashes \u2014 Quote string with slashes in a C style<br \/>\naddslashes \u2014 Quote string with slashes<br \/>\nbin2hex \u2014 Convert binary data into hexadecimal representation<br \/>\nchop \u2014 Alias of rtrim<br \/>\nchr \u2014 Return a specific character<br \/>\nchunk_split \u2014 Split a string into smaller chunks<br \/>\nconvert_cyr_string \u2014 Convert from one Cyrillic character set to another<br \/>\nconvert_uudecode \u2014 Decode a uuencoded string<br \/>\nconvert_uuencode \u2014 Uuencode a string<br \/>\ncount_chars \u2014 Return information about characters used in a string<br \/>\ncrc32 \u2014 Calculates the crc32 polynomial of a string<br \/>\ncrypt \u2014 One-way string encryption (hashing)<br \/>\necho \u2014 Output one or more strings<br \/>\nexplode \u2014 Split a string by string<br \/>\nfprintf \u2014 Write a formatted string to a stream<br \/>\nget_html_translation_table \u2014 Returns the translation table used by htmlspecialchars and htmlentities<br \/>\nhebrev \u2014 Convert logical Hebrew text to visual text<br \/>\nhebrevc \u2014 Convert logical Hebrew text to visual text with newline conversion<br \/>\nhtml_entity_decode \u2014 Convert all HTML entities to their applicable characters<br \/>\nhtmlentities \u2014 Convert all applicable characters to HTML entities<br \/>\nhtmlspecialchars_decode \u2014 Convert special HTML entities back to characters<br \/>\nhtmlspecialchars \u2014 Convert special characters to HTML entities<br \/>\nimplode \u2014 Join array elements with a string<br \/>\njoin \u2014 Alias of implode<br \/>\nlcfirst \u2014 Make a string&#8217;s first character lowercase<br \/>\nlevenshtein \u2014 Calculate Levenshtein distance between two strings<br \/>\nlocaleconv \u2014 Get numeric formatting information<br \/>\nltrim \u2014 Strip whitespace (or other characters) from the beginning of a string<br \/>\nmd5_file \u2014 Calculates the md5 hash of a given file<br \/>\nmd5 \u2014 Calculate the md5 hash of a string<br \/>\nmetaphone \u2014 Calculate the metaphone key of a string<br \/>\nmoney_format \u2014 Formats a number as a currency string<br \/>\nnl_langinfo \u2014 Query language and locale information<br \/>\nnl2br \u2014 Inserts HTML line breaks before all newlines in a string<br \/>\nnumber_format \u2014 Format a number with grouped thousands<br \/>\nord \u2014 Return ASCII value of character<br \/>\nparse_str \u2014 Parses the string into variables<br \/>\nprint \u2014 Output a string<br \/>\nprintf \u2014 Output a formatted string<br \/>\nquoted_printable_decode \u2014 Convert a quoted-printable string to an 8 bit string<br \/>\nquotemeta \u2014 Quote meta characters<br \/>\nrtrim \u2014 Strip whitespace (or other characters) from the end of a string<br \/>\nsetlocale \u2014 Set locale information<br \/>\nsha1_file \u2014 Calculate the sha1 hash of a file<br \/>\nsha1 \u2014 Calculate the sha1 hash of a string<br \/>\nsimilar_text \u2014 Calculate the similarity between two strings<br \/>\nsoundex \u2014 Calculate the soundex key of a string<br \/>\nsprintf \u2014 Return a formatted string<br \/>\nsscanf \u2014 Parses input from a string according to a format<br \/>\nstr_getcsv \u2014 Parse a CSV string into an array<br \/>\nstr_ireplace \u2014 Case-insensitive version of str_replace.<br \/>\nstr_pad \u2014 Pad a string to a certain length with another string<br \/>\nstr_repeat \u2014 Repeat a string<br \/>\nstr_replace \u2014 Replace all occurrences of the search string with the replacement string<br \/>\nstr_rot13 \u2014 Perform the rot13 transform on a string<br \/>\nstr_shuffle \u2014 Randomly shuffles a string<br \/>\nstr_split \u2014 Convert a string to an array<br \/>\nstr_word_count \u2014 Return information about words used in a string<br \/>\nstrcasecmp \u2014 Binary safe case-insensitive string comparison<br \/>\nstrchr \u2014 Alias of strstr<br \/>\nstrcmp \u2014 Binary safe string comparison<br \/>\nstrcoll \u2014 Locale based string comparison<br \/>\nstrcspn \u2014 Find length of initial segment not matching mask<br \/>\nstrip_tags \u2014 Strip HTML and PHP tags from a string<br \/>\nstripcslashes \u2014 Un-quote string quoted with addcslashes<br \/>\nstripos \u2014 Find position of first occurrence of a case-insensitive string<br \/>\nstripslashes \u2014 Un-quote string quoted with addslashes<br \/>\nstristr \u2014 Case-insensitive strstr<br \/>\nstrlen \u2014 Get string length<br \/>\nstrnatcasecmp \u2014 Case insensitive string comparisons using a &#8220;natural order&#8221; algorithm<br \/>\nstrnatcmp \u2014 String comparisons using a &#8220;natural order&#8221; algorithm<br \/>\nstrncasecmp \u2014 Binary safe case-insensitive string comparison of the first n characters<br \/>\nstrncmp \u2014 Binary safe string comparison of the first n characters<br \/>\nstrpbrk \u2014 Search a string for any of a set of characters<br \/>\nstrpos \u2014 Find position of first occurrence of a string<br \/>\nstrrchr \u2014 Find the last occurrence of a character in a string<br \/>\nstrrev \u2014 Reverse a string<br \/>\nstrripos \u2014 Find position of last occurrence of a case-insensitive string in a string<br \/>\nstrrpos \u2014 Find position of last occurrence of a char in a string<br \/>\nstrspn \u2014 Find length of initial segment matching mask<br \/>\nstrstr \u2014 Find first occurrence of a string<br \/>\nstrtok \u2014 Tokenize string<br \/>\nstrtolower \u2014 Make a string lowercase<br \/>\nstrtoupper \u2014 Make a string uppercase<br \/>\nstrtr \u2014 Translate certain characters<br \/>\nsubstr_compare \u2014 Binary safe comparison of 2 strings from an offset, up to length characters<br \/>\nsubstr_count \u2014 Count the number of substring occurrences<br \/>\nsubstr_replace \u2014 Replace text within a portion of a string<br \/>\nsubstr \u2014 Return part of a string<br \/>\ntrim \u2014 Strip whitespace (or other characters) from the beginning and end of a string<br \/>\nucfirst \u2014 Make a string&#8217;s first character uppercase<br \/>\nucwords \u2014 Uppercase the first character of each word in a string<br \/>\nvfprintf \u2014 Write a formatted string to a stream<br \/>\nvprintf \u2014 Output a formatted string<br \/>\nvsprintf \u2014 Return a formatted string<br \/>\nwordwrap \u2014 Wraps a string to a given number of characters<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>PHP \u7684 STRING FUNCTION php \u7684string function \u4e00\u76f4\u662f\u8655\u7406\u5b57\u4e32\u7684\u597d\u5e6b\u624b. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-php-"],"_links":{"self":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":0,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"wp:attachment":[{"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tw.newtonstudio.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}