Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- // list formar num a|num b|num c
- $file = file_get_contents("list.txt");
- $file = explode("\r\n", $file);
- foreach ($file as $key => $num) {
- $num = explode("|", $num);
- $tmp[] = $num[2];
- $crd[] = $num[0]."|".$num[1];
- }
- asort($tmp);
- foreach ($tmp as $key => $is) {
- echo $crd[$key]." | Saldo ".number_format($is,0,',','.')."\r\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement