Function

Posted January 5th, 2010 in PHP Tutorial by Paran

Function is the combination of some code, those are not execute instantly. But when our necessary to call this function this another place, then we call this and work it.

Function are two types :

1. Built-in-function

2. User-defined-function

Built-in function are php own created function. That cannot be change. Several time we need to use this function. e.g phpinfo() is the built in function . If we use this function. This are automatically outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.

Built in function are not enough for us. Several time we fell different problem. For remove this problem we need to create some function, these are called user-defined function. Now we need to know how to create a function.

Statement of a function:

function function_name()

{

echo ” How to develop web based world”;

}

VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)

Why Learn PHP?

Posted January 5th, 2010 in PHP Tutorial by Paran

May you are confusion fell, why I learn on php? Answer is simple, For several reason you can choose the php.

These are as follows:

  • It’s very easy programming language from other programming language.
  • For web development it’s  very popular language in the world.
  • By use it,  in a short time database can be  created for web application.
  • More advantage also get from the php.
VN:F [1.9.3_1094]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)