PHP function Accumulation Summary _php tutorial

Source: Internet
Author: User
Tags acos aliases asin crc32 first string md5 hash natural logarithm rtrim
Math function:
10 of the more commonly used red.

abs-Absolute Value
acos-Inverse cosine
acosh-Inverse hyperbolic cosine
asin-anyway Chord
asinh-Inverse hyperbolic sine
atan2-two parameters of the inverse tangent
atan-anyway cut
atanh-Inverse hyperbolic tangent
Base_convert-converting numbers between arbitrary binaries
bindec-binary conversion to decimal
Ceil-into one method to take the whole
cos-cosine
cosh-Hyperbolic cosine
decbin-Decimal conversion to Binary
dechex-decimal conversion to hexadecimal
decoct-Decimal conversion to octal
deg2rad-to convert an angle to radians
exp-calculating the exponent of E
The expm1-returns exp (number)-1, even if the value of the count is close to 0 to calculate the exact result
floor-and rounding out the whole process
fmod-returns the remainder of the floating-point number for division
getrandmax-Displays the maximum possible value of the random number
hexdec-16 binary conversion to decimal
hypot-calculating the length of the hypotenuse of the triangle at all angles
is_finite-to determine whether a finite value
is_infinite-to determine if it is an infinite value
is_nan-determine if the value is legal
lcg_value-Combination Linear congruence generator
log10-logarithm with base 10
log1p-returns log (1 + number), even if the value near 0 can calculate the exact result
log-Natural logarithm
max-Find the maximum value
min-Find the Minimum value
mt_getrandmax-display the maximum possible value of a random number
mt_rand-generate a better random number
mt_srand-sowing a better random number generator seed
octdec-octal conversion to decimal
pi-Get pi Value
pow-exponential expression
rad2deg-convert radians to corresponding number of angles
Rand-produces a random integer
Round-rounding of floating-point numbers
sin-sine
sinh-hyperbolic sine
sqrt-Square Root
srand-sowing random number generator seeds
tan-Tangent
tanh-Hyperbolic tangent

String functions:

The more you know, the more you have at least 20. More commonly used red.

addcslashes-using backslashes to escape characters in a string in C language style
addslashes-referencing strings with backslashes
bin2hex-converts binary data to hexadecimal notation
Aliases for Chop-rtrim
chr-returns the specified character
chunk_split-splitting a string into small chunks
Convert_cyr_string-converts a character from one Cyrillic character to another
convert_uudecode-decoding a uuencode encoded string
convert_uuencode-encoding a string with Uuencode
count_chars-returns information about the characters used in the string
crc32-computes a crc32 polynomial of a string
crypt-one-way string hash
echo-output one or more strings
explode-using one string to split another string
Fprintf-writes the formatted string to the stream
get_html_translation_table-returns the conversion table after using Htmlspecialchars and htmlentities
hebrev-Convert Logical Order Hebrew (logical-hebrew) to Visual Order Hebrew (visual-hebrew)
hebrevc-converts logical Order Hebrew (logical-hebrew) to Visual Order Hebrew (visual-hebrew), and converts newline characters
Html_entity_decode-convert all HTML entities to their applicable characters
Htmlentities-convert all applicable characters to HTML entities
Htmlspecialchars_decode-convert Special HTML entities back to characters
Htmlspecialchars-convert special characters to HTML entities
Implode-join array elements with a string
join-alias Implode
Lcfirst-make A string ' s first character lowercase
Levenshtein-calculate Levenshtein distance between, strings
Localeconv-get Numeric formatting information
Ltrim-strip whitespace (or other characters) from the beginning of a string
md5_file-computes the MD5 hash value of the specified file
md5-Calculating the MD5 hash value of a string
Metaphone-calculate the Metaphone key of a string
Money_format-formats a number as a currency string
Nl_langinfo-query Language and locale information
nl2br-inserting HTML wrap tags before all new lines in the string
Number_format-format a number with grouped thousands
Ord-the ASCII value of the returned character
Parse_str-parses the string into variables
print-Output string
printf-Output formatted string
Quoted_printable_decode-convert a quoted-printable string to an 8 bit string
Quoted_printable_encode-convert a 8 bit string to a quoted-printable string
Quotemeta-quote Meta characters
rtrim-Delete whitespace characters (or other characters) at the end of a string
Setlocale-set locale Information
sha1_file-calculating the SHA1 hash value of a file
sha1-calculating the SHA1 hash value of a string
similar_text-calculating the similarity of two strings
Soundex-calculate the Soundex key of a string
Sprintf-return a formatted string
Sscanf-parses input from a string according to a format
str_getcsv-parsing a CSV string as an array
Ignoring case versions of Str_ireplace-str_replace
Str_pad-fills a string with another string for a specified length
str_repeat-repeating a string
str_replace-substring substitution
str_rot13-performing ROT13 conversions on strings
Str_shuffle-randomly disrupts a string
str_split-converting a string to an array
Str_word_count-returns the use of words in a string
strcasecmp-binary Security comparison string (case insensitive)
strchr-alias Strstr
strcmp-Binary Security string comparison
strcoll-locale-based string comparisons
Strcspn-gets the length of the starting substring of the mismatched matte
strip_tags-removing HTML and PHP tags from a string
stripcslashes-dereference A string that is escaped with addcslashes
stripos-find where strings first appear (case insensitive)
stripslashes-dereference A reference string
Ignoring case versions of the STRISTR-STRSTR function
strlen-Get string length
Strnatcasecmp-comparing strings using the natural order algorithm (case insensitive)
Strnatcmp-comparing strings using natural sorting algorithms
strncasecmp-binary security compare several characters at the beginning of a string (case insensitive)
strncmp-binary security compare several characters at the beginning of a string
strpbrk-to find any one character of a set of characters in a string
strpos-find where the string first appears
Strrchr-finds the last occurrence of a specified character in a string
strrev-Inverse string
Strripos-calculates the location of the last occurrence of the specified string in the target string (case insensitive)
Strrpos-calculates the last occurrence of the specified string in the target string
strspn-computes the length of the first string in the specified set of characters, all of which are present in the strings.
strstr-finding the first occurrence of a string
strtok-Tag Split string
strtolower-converting a string to lowercase
strtoupper-converting a string to uppercase
strtr-converting a specified character
substr_compare-binary Security comparison string (specified length from offset position)
substr_count-count occurrences of a string
substr_replace-a substring of a replacement string
substr-returns a substring of a string
trim-remove whitespace characters (or other characters) from the beginning and end of a string
Ucfirst-converts the first letter of a string to uppercase
ucwords-converts the first letter of each word in a string to uppercase
vfprintf-writing a formatted string to a stream
vprintf-Output formatted string
vsprintf-returning a formatted string
wordwrap-break string to a specified number of strings

Array functions

The more you know, the more you have at least 15. More commonly used red.

array_change_key_case-returns an array of string key names that are all lowercase or uppercase
array_chunk-splits an array into multiple
Array_combine-creates an array with the value of an array as its key name, and the value of another array as its value
array_count_values-the number of occurrences of all values in the statistics array
array_diff_assoc-with index Check the difference set of the computed array
array_diff_key-Calculating the difference set of an array using the key name comparison
array_diff_uassoc-uses the user-supplied callback function to do an index check to calculate the difference set of the array
array_diff_ukey-using a callback function to compare the difference set of an array to a key name
array_diff-Calculating the difference set of an array
array_fill_keys-fills an array with the specified key and value
array_fill-fills an array with the given value
array_filter-filter cells in an array with callback functions
Array_flip-exchanging keys and values in an array
array_intersect_assoc-with index Check the intersection of computed arrays
array_intersect_key-calculating the intersection of an array using the key name comparison
array_intersect_uassoc-with index Check the intersection of computed arrays, using callback function to compare indexes
Array_intersect_ukey-computes the intersection of an array using a callback function to compare the key names
Array_intersect-computes the intersection of an array
array_key_exists-checks whether the given key name or index exists in the array
array_keys-returns all the key names in the array
Array_map-the callback function to the cell of the given array
array_merge_recursive-to merge one or more arrays recursively
array_merge-merging one or more arrays
array_multisort-to sort multiple arrays or multidimensional arrays
Array_pad-fills an array to a specified length with a value
array_pop-pops the last cell of the array (out of the stack)
Array_product-computes the product of all values in an array
array_push-pressing one or more cells into the end of the array (into the stack)
array_rand-random extraction of one or more cells from an array
array_reduce-iteratively to simplify the array to a single value with a callback function
Array_replace_recursive-replaces the elements of the first array with the passed array recursion
Array_replace-replaces the elements of the first array with the passed array
array_reverse-returns an array of cells in reverse order
array_search-searches for the given value in the array, and returns the corresponding key name if successful
Array_shift-moves the cell at the beginning of the array to a group
array_slice-remove a paragraph from an array
array_splice-remove part of the array and replace it with other values
Array_sum-computes the and of all values in the array
array_udiff_assoc-with index Check the difference set of the computed array, using the callback function to compare the data
array_udiff_uassoc-with index Check to calculate the difference of the array, compare the data and index with the callback function
array_udiff-comparing data with callback functions to calculate the difference set of an array
array_uintersect_assoc-with index Check the intersection of the computed array, using the callback function to compare the data
array_uintersect_uassoc-with index Check the intersection of computed arrays, using callback functions to compare data and indexes
Array_uintersect-computes the intersection of an array, compares the data with a callback function
array_unique-duplicate values in an array
array_unshift-inserting one or more cells at the beginning of an array
array_values-returns all values in the array
array_walk_recursive-applying user functions recursively to each member in an array
array_walk-applying user functions to each member in an array
array-creating a new array
arsort-an array in reverse order and maintain an index relationship
asort-sorting an array and maintaining an index relationship
compact-create an array, including the variable names and their values
count-count the number of cells in an array or the number of properties in an object
current-returns the current cell in the array
each-returns the current key/value pair in the array and moves the array pointer forward one step
end-the inner pointer of an array to the last cell
extract-importing variables from an array into the current symbol table
in_array-checks if a value exists in the array
key-getting the key name from the associative array
krsort-an array in reverse order by key name
ksort-sorting arrays by key name
List-assigns the values in the array to some variables
natcasesort-sorting of case-insensitive letters using the "natural sort" algorithm for arrays
natsort-using the "natural sort" algorithm to sort arrays
next-moves the inner pointer in the array forward one
Aliases for Pos-current
prev-the internal pointer of the array back to a
range-creating an array containing the specified range of cells
reset-the inner pointer of an array to the first cell
rsort-reverse sequence of an array
shuffle-Array is scrambled
Aliases for Sizeof-count
sort-sorting an array of arrays
uasort-use a user-defined comparison function to sort the values in the array and keep the index associated
uksort-using a user-defined comparison function to sort the key names in an array
Usort-uses a user-defined comparison function to rank the values in the array

http://www.bkjia.com/PHPjc/477505.html www.bkjia.com true http://www.bkjia.com/PHPjc/477505.html techarticle Math function: 10 more commonly used red. ABS absolute acos Inverse cosine acosh inverse hyperbolic cosine asin anyway chord asinh inverse hyperbolic sine atan2 two parameters of the arc tangent atan anyway tangent atanh inverse double ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.