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

Download Projects

Google Adsense Advertisements
Free Classified Site – Bedpage

Yahoo Advertisements