> asort() in php ~ Online tutorial

asort() in php

asort() function sorts an array by the values.The values keep their original keys.
syntax
asort(array,sorttype)


<?php
$sum=array(0=>"apple",1=>"orange",2=>"pine apple");
asort($sum);
print_r($sum);

?>

Output
Array([0]=>apple
[1]=>orange
[2]=>pine apple)

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: