2011-05-26 PHPで値を入れ替える $a = 'hoge'; $b = 'hage'; list($a, $b) = array($b, $a); echo $a, "\n"; // hage echo $b, "\n"; // hoge