About Me

header ads

Variables In php | Variables



$Variables

It should be defined with '$'

example: 
    $a;
    #now 'a' named variable is defined.

    #now assigning valid value inside variable
    $a=10;
    now it's assigned .
note: ';' is important end of line.
add(+);


single quote and double qoute is only used to show string data.so i didn't use on the value of 'a'

Comments:
use '// ' in php we have to comment for single line.
use '/* */ ' in php we have to comment for multiple line.

Concadinate
using '.' we can concadinate later will discuss more abou it.

print can be used
print_r can be used to show array data


Post a Comment

0 Comments