PHP Snippets
Manchmal muss man schnell mehrere Variablen tauschen und ich hatte mich irgendwann gefragt, ob das nicht auch ohne temp - Variable möglich ist. Seit dem ist das meine best - practice: [$x, $y] = [$y, $x]
Manchmal muss man schnell mehrere Variablen tauschen und ich hatte mich irgendwann gefragt, ob das nicht auch ohne temp - Variable möglich ist. Seit dem ist das meine best - practice: [$x, $y] = [$y, $x]