AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

PHP variables


<< Previous Page
PHP Syntax
Next Page >>
PHP Echo and Print
Free Tutorial online >> PHP Variables
PHP variables are true "containers" for storing information and always start with a dollar sign ($), followed directly by the variable name, then an "equal sign" (=), and followed the text included in quotation marks with ("), followed by ( ;) as a command end.

Simple Variables PHP code, example - how to create


Nn example of a simple PHP code, with a PHP script that uses a built-in PHP function as "echo" or "print" to output the text in browser "Hello World!"

Example:
<HTML>
<head>
<title>
Simple Variables PHP code </ title>
</ head>
<body>

Simple Variables PHP code <br>
<?php
$text = "This is a Simple Variables PHP code - Hello world!";
$x = 55;
$y = 12.56;
?>
</ body>
</ HTML>
Note: The PHP statements end with a semicolon (;).

the variable $text will hold the value "This is a Simple Variables PHP code - Hello world!", the variable $x will hold the value 55, and the variable $y will hold the value 12.56.

<< Previous Page
PHP Syntax
Next Page >>
PHP Echo and Print



PHP Variables - php tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


Home
PHP Introduction
PHP Install
PHP Syntax
PHP Variables
PHP Echo and Print
PHP Data Types
PHP String Function
PHP Constants
PHP Operator Types
PHP If Else and Elseif
PHP Switch
PHP While Loops
PHP Loop For Do Foreach
PHP Array
Convert Array to String
PHP Function
PHP GET and POST
PHP Date/Time Functions
PHP Login
PHP Delete Element
PHP eregi_replace()
PHP mysql_query()
PHP Errors to Display
PHP Loop For Do Foreach

PHP forms
PHP Form Example
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.