Wednesday, July 09, 2008

How can you start PHP?

Hi,

I am again to you saying about PHP. Actually, it is very easy to start PHP for the begainner specially who have the knowledge in C language.

Here in PHP, $ ( like US. dollar ha ha) has a powerful impact. Every variable you want to declare must start with a "$" sign e.g., $var, $plus etc. Then you can use this variable in your program.
Now, what about the variable's data type?? Its using is pretty much easier than other languages. You need not declare explicitly the data type here rather you can use it for any data type.

Example:
$var = 1234 ; // Not require to mention data type Integer.
$st = "jhfgjsfdghfjhgjh" ; // Not require to mention data type string.
$doub = 12.36 ; // Not require to mention data type double.

But in case of array declaration,
u should use this way for one dimension,
$arr = array();
or, $arr = array("a","b","c");

For two dimension $arr = array(array());

See you later.

2 comments:

Reaz said...

thanks for help

Reaz said...

thanks

 
Loading...