PHP example or small projects
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 Date & time Function Example
|01||PHP Cal Days In Month Function|
PHP PHP MYSQL Function Function Example
|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); ?>