Why we use function in Php.I have problem in Array Loop and padding
can anyone suggest me easy way to learn of PHP

hello..
Are you asking about general function or php functions??

okay,
Generally functions are used to re usability of some piece of code.Means if you write some code in your function , then you can call that function where ever you want ...you just call that function instead of re-writing the piece of code...
the use of function is same in any language...

http://www.w3schools.com is the best site for beginner of php...
And try coding and post your errors , you will get solved them here....

All The Best..

Shanti.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.