Php Basics

Loops basics in PHP

Sep 05 2017 0 by admin

While | Do While | For | Foreach | Loop in php is used to execute until provided expression is true.

In PHP, four type of loop available.

1. WHILE Loop

2. DO WHILE Loop

3. FOR Loop

4. FOREACH Loop

Posted on

Php If else basics

Sep 05 2017 0 by admin

if else statements are very basic blocks to check condition(boolean expression) to execute appropriate block.

IF ELSE STATEMENTS :

SYNTAX:

if (booleanExpression) {
// if booleanExpression is True this code will execute
your code here….
} else {
// if booleanExpression is False this code will execute
your code here….
}

Posted on

Array Basics - PHP Example

Aug 29 2017 0 by admin

Array is a collection of similar types of datatype.
Array is used to stores multiple values in one place.
Array contains key => value pair, each value in array assigned on a key (index).
We can fetch stored value with the use of key (index).

Posted on

String basics in PHP

Aug 26 2017 0 by admin

A string is a sequence or series of characters, numbers, symbols in php.
Characters comes inside single quotes or double quotes treat as string.
We can create string by enclosing characters inside single / double quotation mark.

Posted on

Variables basic in Php

Aug 26 2017 0 by admin

Variable in PHP is used to store a value in memory.
We can store integer, strings, characters, decimals in memory by using variables in PHP.

Posted on

Install PHP and Mysql - WAMP Server

Aug 16 2017 0 by admin

As a beginner, who want to learn PHP . One of the main question is how to create your first php program and how to run it. Php is a server side language so need a server to run php programs.

In this blog we are using wamp server for php programs to run. Install Wamp Server and create a Hello World program and run it.

Posted on