ksort() function sorts an array by the keys.The values keep their original keys
syntaxksort(array,sorttype)
<?php $sum=array(a=>"india",b=>"pak"); ksort($sum); print_r($sum); ?> |
Array(a=>india
b=>pak)
>
ksort() function sorts an array by the keys.The values keep their original keys
syntax<?php $sum=array(a=>"india",b=>"pak"); ksort($sum); print_r($sum); ?> |
0 comments:
Post a Comment