News:

Build a stunning handcrafted website with IT Acumens

Main Menu

PHP Functions

Started by sajiv, Jul 10, 2008, 02:02 PM

Previous topic - Next topic

sajiv

PHP Functions


PHP Functions:

In PHP a function is a predefined set of commands that are carried out when the function is called. In addition to being able to write your own functions, PHP has a number of predefine functions for you to use. Below are many functions we discuss in our various tutorials, with simple definitions and examples to follow.

Abs () PHP Function:

Examples:
    <?php
    abs (-6) ;
    //returns a value of 6

    abs (12.4) ;
    //returns a value of 12.4

    abs (-456.2) ;
    // returns a value of 456.2
    ?>
:acumen