List of built-in functions in PHP
In PHP, built-in functions are built into the PHP interpreter. This allows them to be called in a page without being first defined or included.[1]:{{{1}}} The following is a list of built-in functions in PHP.
Functions
strlen()
strlen($string) returns the number of characters in $string.[1]:{{{1}}}
strtolower()
strtolower($string) returns $string with every letter converted to lowercase.[1]:{{{1}}}
strtoupper()
strtoupper($string) returns $string with every letter converted to uppercase.[1]:{{{1}}}
str_word_count()
str_word_count($string) returns the number of letters in $string.[1]:{{{1}}}
ucwords()
ucwords($string) returns $string with the first letter of each word converted to uppercase.[1]:{{{1}}}
strpos()
strpos($string, $substring[, $offset]) returns the index of the first instance of $substring in $string. If $offset is used, it starts checking for $substring at the index $offset.[1]:{{{1}}}
References
- ↑ 1.0 1.1 1.2 1.3 1.4 1.5 1.6 Duckett, Jon; Stone, Emme; Ullman, Chris (February 2022). PHP & MySQL: server-side web development. John Wiley & Sons, Inc. ISBN 978-1-119-14922-4. Search this book on
This article "List of built-in functions in PHP" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:List of built-in functions in PHP. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
