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 Array Function Example
PHP String Function Example
PHP Mathematical Function Example
PHP Variable Function Example
PHP Directory & File System Function Example
PHP Date & time Function Example
PHP Variable Function Example
PHP PHP MYSQL Function Function Example
Download PHP Function PDF
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);
?>