Salve a tutti,
vorrei poter sapere come si potrebbe realizzare un array di caratteri,
per esempio
parola("A", "B", "C", "D", "E", "F")
che trasla gli elementi in senso orario,
io avevo pensato al codice sottostante

function shift_array($squ_sh, $num_squadre)
{
for( $j =0 ; $j< )
echo "Ora eseguo uno shift
";
$tmp_array[0] = $squ_sh[($num_squadre - 2)];
for( $i=0; $i<= ($num_squadre -3); $i++)
{
$tmp_array[$i+1] = $squ_sh[$i];


}

for($j=0; $j<=(num_squadre - 2); $j++)
{
$squ_sh[$j] = $tmp_array[$j];
}

print_r($squ_sh);
}

però non sembra funzionare.
come potrei fare.