然后捏,一群无聊的小朋友正在用优雅的手段改造更绅士编程语法,大概就是这样:
if ($condition) {
// Code here
} else {
// Code here
}
=》
perchance (£condition) {
// Code here
} otherwise {
// Code here
}
switch ($variable) {
case $option1:
//Code here
break;
case $option2:
//Code here
break;
default:
//Code here
break;
}
=》
what_about (£variable) {
perhaps £possibility:
//Code here
splendid;
perhaps £other_possibility:
//Code here
splendid;
on_the_off_chance:
//Code here
splendid;
}
try {
// Code here
} catch (Exception $e) {
// Handle exception
}
=》
would_you_mind {
// Code here
} actually_i_do_mind (Exception £e) {
// Politely move on
}