User-submitted PHP Projects

37
311 reads

January 25, 2013

33
1703 reads

January 18, 2013

Global variables


This code shows how global variables are handled in php.

42
1452 reads

January 18, 2013

Static Variable


This code demonstrates the effect of declaring a variable a s static.

44
2092 reads

January 18, 2013

Print a statement


The code shows how to print a statement in php.

25
1519 reads

January 18, 2013

Returning Multiple Values


This code shows how to return multiple values from a function in the form of an array and accessing all array values in a list.This is very useful.

287
2708 reads

January 18, 2013

Default Argument Values in a function


The code demonstrates how to use default argument values in a function.

144
1377 reads

January 18, 2013

Passing Arguments by Reference to a function


The code demonstrates passing arguments by reference to a function. The changes made to the arguments passed by reference are reflected back.

66
1413 reads

January 18, 2013

Passing Arguments by Value in function


This code demonstrates how to pass arguments by value in a function in php.

298
3759 reads

January 18, 2013

Adding elements to the beginning of an array


The code demonstrates how to add elements to the beginning of an array.