Posted On: Feb 22, 2018
You can use library function array_unique() for removing duplicated values for an array. Here is syntax to use it.
<?php $a=array("a"=>"home","b"=>"town","c"=>"town","php"); print_r(array_unique($a)); ?>
Never Miss an Articles from us.
You can find the datatype of a variable in PHP by using the Var_dump() and gettype() functions....
Some differences are:..
An interface can be defined as a platform that permits users to develop programs that mention all public methods that need to be implemented by various classes. It does not involve any complexity or d...