Talking City



Go Back   Talking City > Coding and Programming > PHP Forum
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2016, 10:07 AM
jatindersingh jatindersingh is offline
Member
 
Join Date: Sep 2014
Posts: 52
jatindersingh is on a distinguished road
Default PHP Data Types

String
Integer
Float (floating point numbers - also called double)
Boolean
Array
Object
NULL
Resource

Reply With Quote
  #2  
Old 02-18-2016, 10:56 AM
Daljeet Daljeet is offline
Senior Member
 
Join Date: Dec 2014
Posts: 206
Daljeet is on a distinguished road
Default

Variables can store data of different types, and different data types can do different things:

String:
string can be any text inside quotes. You can use single or double quotes.
Integer:
An integer data type is a non-decimal number between.
Float:
A float is a number with a decimal point or a number in exponential form.
Boolean:
This is represents two possible states: TRUE or FALSE
Array:
Array stores multiple values in one single variable.
Object:
An object is a data type which stores data and information on how to process that data.
NULL Value:
This is special data type which can have only one value: NULL.
Resource:The special resource type is not an actual data type. It is the storing of a reference to functions and resources external to PHP.
Reply With Quote
  #3  
Old 02-18-2016, 02:31 PM
AmitSood AmitSood is offline
Senior Member
 
Join Date: Oct 2015
Location: India
Posts: 90
AmitSood is on a distinguished road
Default

Thanks Daljeet for sharing these Data Types in details.
Reply With Quote
  #4  
Old 02-18-2016, 06:02 PM
shilparana shilparana is offline
Senior Member
 
Join Date: May 2015
Posts: 192
shilparana is on a distinguished road
Default

Really well written Post Daljeet! Thanks for sharing.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +5.5. The time now is 03:13 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Talking City Managed by Megrisoft