Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // sampel input array
- $data = array("2013-12-20","2013-12-21","2013-12-22");
- // fungsi untuk format tanggal
- function toDMY(&$input){
- $input = date("d/m/Y", strtotime($input));
- return $input;
- }
- array_walk($data,'toDMY');
- // test output
- print_r($data);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment