Sorting IP Address
Last Updated on Sunday, 10 January 2010 15:34 Written by Zack Sunday, 03 January 2010 14:37
PHP မွာ IP Address ေတြကို sorting လုပ္လို႕ရတဲ့ function ကို လိုက္ရွာရင္း natsort ဆိုတဲ့ function ကိုသြားေတြ႔တယ္။natsort($a);
For eg;
<?php
$a = array('100.200.300.400', '100.50.60.70', '100.8.9.0');
natsort($a);
echo implode(' < ',$a);
?>
| < Prev | Next > |
|---|
Login Form
Latest Post
Categories Table View
- Reader's Conner (133)
- PHP (48)
- Joomla CMS (46)
- Codeigniter (18)
- jQuery (12)
- iDhamma (11)
- Mobile Development (10)
- PHP & AJAX (4)
- Apache (3)
- For Mac (3)
- mySQL (2)
- DhammaDroid (1)