Understanding Php Simple Data Types

Every language has different types of variables- and PHP has no shortage of choices.The language supports a wide variety of data types,including simple numeric characteristic,string and Boolean types,and more complex arrays and objects.

Data Type Description Example
Boolean The simplest variable type in PHP,a Boolean variable simply specifies a true or false value $auth=true
Integer An integer is plain-vanilla number like 75,-95,2000, or 1. $age=99;
Floating-point A floating point number is typically a fractional number such as 12.5 or 3.14931239129. Floating point numbers may be specified using either decimal or scientific notation $temperature=56.89;
String A string is a sequence of characters,like ‘hello how low’ or ‘abracadabra’.String values may be enclosed in either double quotes(” “) or single quotes(‘ ‘). $name=’Kurt’;

This post is tagged: , ,


3 Responses to “Understanding Php Simple Data Types”
  1. 01.28.2011

    I really like the colors here on your blog. did you make this yourself or did you have it done by a professional?

  2. 01.31.2011

    Very nice article and straight to the point. I am not sure if this is truly the best place to ask but do you guys have any thoughts on where to get some professional writers? Thx :)

  3. 02.05.2011

    google check ebt19gxrxii1mlu2


Leave a Reply