Tuesday, 27 December 2011

PHP part 1..

PHP = Hypertext PreProcessor..

PHP is a server side scripting language. PHP scripts are executed on the server. Source code is not visible by clients. 

How to run PHP scripts?

1) Basic PHP syntax

Notes = There are 2 basic statements to output text : echo and print..


2) PHP comments.


3) PHP variables.

- Variables must be declared and are used for storing values like strings, number or arrays.
- All variables start with $ sign.
BASIC

EXAMPLE

4) PHP string variable.


5) The concatenation operator.


6) The strlen() function.

7) If statement.

8) If ... else statement.


9) if.. else if... else statement.


There's a lot more to learn. see u next time !

to be continued......

No comments:

Post a Comment