Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 277 Bytes
$x = 1;
echo ['stack', 'overflow'][$x];
//é "melhor" (ou pelo menos o código fica mais simplificado) que fazer
switch ($x) {
case 0:
echo 'stack';
break;
case 1:
echo 'overflow';
break;
}
//http://pt.stackoverflow.com/q/23400/101
You can’t perform that action at this time.