PHP Variables

Declaring) PHP Variables In PHP, a variable is declared using a $ sign followed by the variable name. We don’t need to declare the data types of variable, that’s why it called loosely typed language. Here we use Assignment Operator (=) to assign the value to a variable. Rules for PHP variables: A variable starts with the $ sign,… Continue reading PHP Variables

Published
Categorized as PHP

PHP echo and print Statements

PHP echo and print PHP echo and print are more or less the same. Because they are both used to output data to the screen. echo has no return value while print has a return value of 1 so it can be used in expressions. echo can take multiple parameters while print can take one argument. echo is faster than print.

Published
Categorized as PHP

PHP Syntax

A PHP file contains HTML tags and some PHP scripting code. It is very easy to create a simple PHP example. To do so, create a file and write HTML tags + PHP code and save this file with .php extension. A PHP script starts with <?php   And ends with ?> Note: PHP statements ends with… Continue reading PHP Syntax

Published
Categorized as PHP

How to Install PHP

To install PHP, we will give you suggestion to install AMP (Apache, MySQL, PHP) software stack. That is available for all operating systems. There are many AMP options available in the market that are given here WAMP for Windows LAMP for Linux MAMP for Mac XAMPP (Cross, Apache, MySQL, PHP, Perl) for Cross Platform: It includes some other components… Continue reading How to Install PHP

Published
Categorized as PHP

PHP Introduction

What is PHP PHP is a server-side scripting language, and a powerful tool for making dynamic and interactive Web pages or Websites. PHP is a widely-used, free, and efficient Programing Language. It is faster than other scripting languages, for example, ASP and JSP. It is stand for “PHP: Hypertext Preprocessor” Its scripts are executed on… Continue reading PHP Introduction

Published
Categorized as PHP