<?php
$rate=array ( "M100B1000" => "40.00", "M1000B20000" => "80.00", "M500B10000" => "50.00", "MUnlimitedBUnlimited" => "240.00", "M5000BUnlimited" => "120.00 ") ;
ksort($rate);
print_r($rate);
?>
It gives sorting rate array..
M1000B20000
M100B1000
M5000BUnlimited
M500B10000
MUnlimitedBUnlimited
I Need this sorting..
M100B1000
M500B10000
M1000B20000
M5000BUnlimited
MUnlimitedBUnlimited
Give some ideas...
M100B
is not going to be beforeM1000B
(extra 0). You will have to manually sort / reg expression this.