Jump to content

Php tutorial fast and easy part 1


Recommended Posts

//Php tutorial part one

/*so what is PHP? PHP stands for PHP: Hypertext Preprocessor

Made by crimec


PHP is a widely-used, open source scripting language

PHP scripts are executed on the server

PHP is free to download and use*/

//What is a PHP File?

/*PHP files can contain text, HTML, JavaScript code, and PHP code

PHP code are executed on the server, and the result is returned to the browser as plain HTML

PHP files have a default file extension of ".php" */


//A php syntax

//This is basically a php syntax


<?php //This is the opening tag


?>//Closing tag


//this is how you write a simple hello


<?php//php opening tag

echo "hello";//executes the text hello using and echo

?>//Closing tag


/*so what have we learned today?

well we learned that php stands for PHP: Hypertext Preprocessor we also learned

that <?php is the php opening tag and <? is the closing tag.Also we learned that (echo) shows a text

in this example we used hello.*/


//End of part one

Edited by crimec
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...