2011-05-26から1日間の記事一覧

PHPで値を入れ替える

$a = 'hoge'; $b = 'hage'; list($a, $b) = array($b, $a); echo $a, "\n"; // hage echo $b, "\n"; // hoge