Interchange the display order in a loop
===

I am trying to interchange the display order in a loop.<br /> 
For example i have an array `$array` with values: `1,2,3,4,5` and want to display the result in the order `2,1,3,4,5`. 
I am using the following code for the purpose and which worked for me:

    <?php
    $array = array(
    	1,
    	2,
    	3,
    	4,
    	5,
    );
    $tempArray = array();
    $count = 1;
    foreach($array as $key => $value){
    	$tempArray[$key] = $value;
    	if(in_array($count, array(1, 2))){
    		if($count == 2){
    			echo $tempArray[1] . '<br />';
    			echo $tempArray[0] . '<br />';
    		}
    	}else{
    		echo $value . '<br />';
    	}
    	$count++;
    }

But i would like to know if there is any effective (better) way of doing so?