Tuesday, January 17, 2012

How to Write First Php Script?

Write Your First Php Script:
Open your php editor like Macromedia Dreamweaver or other you can also use windows default program notepad to write php script.

<?php
echo 'This is my first script';

?>
Description of Code Elements:
<?php
every php code start with it

echo
it use to show your text in php code you can also use print instead of echo both are same.

'This is my first script';
this is your text in php code it with in single quotes and at the of echo or print statement use semi column.

?> 
it is close sign of php code

No comments:

Post a Comment