Professional Documents
Culture Documents
PHP Library Function (Compatibility Mode)
PHP Library Function (Compatibility Mode)
Count() In_array()
count — Count elements in an array in_array — Checks if a value exists in an array
array_sum() Sort()
array_sum — Calculate the sum of values in an array sort — Sorts an array
1
4/4/2011
array_merge()
array_merge() merges the elements of one or more arrays
array_fill() together so that the values of one are appended to the end
of the previous one. It returns the resulting array.
array_fill — Fill an array with values
array_unique()
array_unique — Removes duplicate values from an
array
String :-1)explode()
The explode() function breaks a string into an array.
implode()
The implode() function returns a string from the
elements of an array.
trim()
The trim() function removes whitespaces and other
predefined characters from both sides of a string.
2
4/4/2011
ucwords() addslashes()
The ucwords() function converts the first character of The addslashes() function returns a string with
each word in a string to uppercase. backslashes in front of predefined characters.
substr()
stripslashes() The substr() function returns a part of a string.
The stripslashes() function removes backslashes added
by the addslashes() function
nl2br()
The nl2br() function inserts HTML line breaks (<br
strip_tags()
/>) in front of each newline (\n) in a string. The strip_tags() function strips a string from HTML,
XML, and PHP tags.