Search
 
SCRIPT & CODE EXAMPLE
 

PHP

what are the different types of PHP variables?

There are 8 data types in PHP which are used to construct the variables:
1. Integers - are whole numbers without a decimal point, like 4195.
2. Doubles - are floating-point numbers, like 3.14486 or 49.1.
3. Booleans - have only two possible values either true or false.
4. Null - is a special type that only has one value:Null.
5. Strings - are sequences of characters.
6. Arrays - are named and indexed collection of other values.
7. Objects - are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.
8. Resources- are spacial varibles that hold references to resources external to PHP.
Comment

PREVIOUS NEXT
Code Example
Php :: php access class variable 
Php :: how to create route in laravel 
Php :: Logging a Massage php 
Php :: firebase realtime database get all data 
Php :: laravel make:action 
Php :: crud operations in php 
Php :: php object to json 
Php :: php break and continue 
Php :: php round function syntax 
Php :: laravel error 422 unprocessable entity 
Php :: magento check which user has added a product 
Php :: php array_pop with key 
Php :: strpos() expects parameter 1 to be string, object given 
Php :: laravel excel 
Php :: php inner join array 
Php :: oop php 
Php :: laravel image max size validation 
Php :: php match expression 
Php :: php backend generator 
Php :: merge pdf php fpdf 
Php :: drop column laravel migration 
Php :: with relation laravel 
Php :: php check empty variable 
Php :: how to give points to referrer in laravel 
Php :: php missing ext gd 
Php :: IgasterLaravel ThemeExceptions heme Already Exists 
Php :: csv import laravel 
Php :: php to display variables 
Php :: cidblike ci3 
Php :: how can get attribute without getter in laravel 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =