To Revise PHP

NOTE: This article is for that person who is already familiar with any programming language and now just wanted to go through the syntax in order to revise PHP.

PHP is a general-purpose programming language but is heavily used as a backend programming language of the web.

So let’s just start revising PHP.

echo

echo is used to display the output.

echo

Comments

comments

Variable

Types

  1. String
  2. Integer
  3. Float
  4. boolean
  5. NULL
  6. Array
  7. Object
  8. Resource

Declaration

variable declaration

Variable Declaration VS Constant Declaration

variable declaration vs constant declaration

Useful variable functions

Useful variable functions

Numbers

Operators

Useful Number Functions

Type Conversion

Number Formatting

String

Single Quotation VS Double Quotation

Useful String Functions

--

--

Muhammad Sarmad Qadeer

Full-Stack Web Developer • Front-End Expert • Opensource Contributor @GitHub • Developer Advocate