Data types in PHP

data

PHP has eight types of data types.It is mainly divided in two types scalar (single-value) types compound (collection) types special types scalar (single-value) types: It consists integers, floating-point numbers, strings, and booleans. compound (collection) types: It consists arrays and objects. special types: Consists resource and NULL. Let Us see one by one in details.   … Read more…

How to destroy a variable in PHP

php

By using unset()function in PHP we can destroy the value of variable in PHP. Let us see how, First assign value to a  variable $car = ‘maruti’; In this variable we store value  car == maruti

if we use the unset function , it destroy the value of that variable.