pTutorial

New way to learn PHP function

PHP example or small projects

Php Function

In this section you can learn a lot of PHP function that are very use full for web development. Given below is a list of PHP function and PHP source code for web development all of them are provided for fee. All of them have two or more example to explain the concept.

PHP String Function Example

No Programs
01 PHP Strstr Function
02 PHP Srrev Function
03 PHP Strlen Function
04 PHP Chr Function

PHP Mathematical Function Example

No Programs
01 PHP Abs Function
02 Pow Function
03 PHP Sqrt Function
04 PHP mt_rand Function
05 PHP Min Function

PHP Variable Function Example

No Programs
01 PHP Is_null Function
02 PHP Unset Function

PHP Directory & File System Function Example

No Programs
01 PHP Getcwd Function
02 PHP Copy Function
03 PHP Rename Function
04 PHP Filemtime Function
05 PHP File_exists Function

PHP Date & time Function Example

No Programs
01 PHP Cal Days In Month Function

PHP Variable Function Example

No Programs
01 PHP Die Function
02 PHP Usleep Function

PHP PHP MYSQL Function Function Example

No Programs
01 PHP function Example

All of above PHP script are explain very easily and step by step with live demo and you can also download the script from the Download section of every page

You can use these function in different problem like form validation, file handling, database programing.

Example of file_exists function

<?php

// file.txt does not exist

var_dump( file_exists('file.txt') );

?>

Example of abs function

<?php

echo abs(-38);

var_dump( abs(-38) );

?>

Example of Array sum function

<?php

$num = array(2.25, 5.65, 1.15);

echo "sum of array = " . array_sum($num);

?>

QUOTES OF THE DAY

We live in this world when we love it.

LIKE ON FACEBOOK

+1 ON GOOGLE

SHARE ON TWITTER