Posted On: Feb 22, 2018
Example of asort():
<?php $age = array("Peter"=>"37", "Ben"=>"27", "Joe"=>"43"); asort($age); ?>
Output: Key=Ben, Value=37 Key=Joe, Value=43 Key=Peter, Value=35
Example of ksort():
<?php $age = array("Peter"=>"37", "Ben"=>"27", "Joe"=>"43"); ksort($age); ?>
Output: Key=Ben, Value=37
Key=Joe, Value=43 Key=Peter, Value=35
Never Miss an Articles from us.
T_PAAMAYIM_NEKUDOTAYIM is scope resolution operator used as :: (double colon) .Basically, it used to call static methods/variables of a Class...
In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...