Home / EG Comp Lab / PHP (page 2)

PHP

PHP Data Types

Variable can store data of different types, and different types can do different things. PHP support following data types: String Integer Float(double) Array Boolean Object Null Resource PHP String A String is a sequence of character like “Hello Microtech!!”; A String can be any text inside quotes.You can use single …

Read More »

PHP Variables

Variables are “containers” for storing information. Creating (Declaring) Variables [sam id=”4″ codes=”true”]   In PHP, a variable starts with the $ sign, followed by the name of the variable: After the execution of the statements above, the variable $txt will hold the value Hello world!, the variable $x will hold …

Read More »

PHP Syntax

A PHP script is executed on the server, and the plain HTML result is sent back to the browser. Basic PHP Syntax A PHP script can be placed anywhere in the document. A PHP script start with <?php and end with ?> [message_box color=”yellow”] <?php //php code here ?> [/message_box] …

Read More »

PHP Introduction

PHP Scripts are executed on the server       What You Should Already Know Before you continue you should have basic knowledge of following topics: HTML CSS JavaScript   What is PHP? PHP is an acronym for “PHP: Hypertext Preprocessor” PHP is a widely-used, open source scripting language PHP …

Read More »