Datatype in PHP

Prev Tutorial Next Tutorial

Datatype in PHP

PHP data types are used to hold different types of data or values. PHP supports the following data types:

  • String
  • Integer
  • Float
  • Boolean
  • Array
  • Object
  • NULL
  • Resource


A string is a sequence of characters, for example "Hello world!".



$x = "Hello world!";
$y = 'Hello world!';

echo $x;
echo "</br>"; 
echo $y;



Hello world! Hello world!

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain,, @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: WhatsApp no. 8882538826

Yahoo Advertisements