php scripting block always starts wid a php block can be placed any where in the document on servers wid shorthand supports enable you can starts a scripting block wid example:- here[;] semicolon is a separator and used to distinguished one set of instructions from another Comments in PHP:- // to make a singleline comment or /* and */ to make a large comment block Variables in PHP:- all variables in php start wid a * sign symbol the correct way of declaring a variables in php *var_name=value; example:- NAMING RULES FOR VARIABLES:-1. a variable name must starts wid a letter or an underscore "_"2. a variable name can only contain alpha-numeric character and underscores (a-z,A-Z,0-9 and _)3. a variable name should not contain spaces if a variable name is more than word,it ...
php scripting block always starts wid ? php and end wid ? a php block can be placed any where in the document
on servers wid shorthand supports enable you can starts a scripting block wid ? and wid ?
example:-
html body ?php echo "hello world";? /body /html
here
[;] semicolon is a separator and used to distinguished one set of instructions from another
Comments in PHP:- // to make a singleline comment or /* and */ to make a large comment block
html body ?php// this is a comment/* this is a comment block*/ ? /body /html
Variables in PHP:- all variables in php start wid a * sign symbol
the correct way of declaring a variables in php
*var_name=value;
example:-
?php *txt="hello world";*x=16; ?
NAMING RULES FOR VARIABLES:-
1. a variable name must starts wid a letter or an underscore "_"
2. a variable name can only contain alpha-numeric character and underscores (a-z,A-Z,0-9 and _)
3. a variable name should not contain spaces
if a variable name is more than word,it ...
STRING VARIABLES IN PHP:-EXAMPLE:- ⁢? php *txt="hello world";echo*txt; ?&get;Concatenation Operator:- the concatenation operator (.) is used to put two string values together EXAMPLE:- ⁢ ? php *txt1="hello world"; *txt2="what a nice day";echo*txt1."".*txt2; ? &get; OUTPUT:- hello world | what a nice day
All dis varible or no varible is meant 4 beginers. If u knw u ar damn sure of urself in php, javascript, aspx... Pls, Indicate and lets show wat we've gt