PHP: Built-in functions

This entry is part 32 of 54 in the series PHP Tutorial

PHP functions can compute and return a value.

There are some built-in functions in PHP.

The simple example below stores the return value of the built-in function number_format( ) in the variable $number.


$number = number_format(285266237);
echo "The number of records sold by Michael Jackson is about: $number";

The built-in function will format the number into 285,266,237.

Series Navigation<< PHP: Passing arguments to functions
PHP: Returning a value from a function >>