Argument Swapping
<?php
$dates = array(
array( 'mon'=> 12, 'mday'=>25, 'year'=>2001 ),
array( 'mon'=> 5, 'mday'=>23, 'year'=>2000 ),
array( 'mon'=> 10, 'mday'=>29, 'year'=>2001 )
);
$format = include ("local_format.php");
foreach ($dates as $date) {
printf( "$format", $date['mon'], $date['mday'], $date['year'] );
}
?>
Related examples in the same category