女朋友和代码掉入水中,你选择先救谁?
今天给女朋友说自己已经好几天没有敲代码了,然后女朋友就问:
“你整天想着代码,如果我和代码同时掉入水中,你会先救谁?”
哈哈!我的答案是这个!
<?php
$who='girlfriend';
if ('fall into the water') {
choose($who);
}
function choose($who){
if ($who=='girlfriend') {
echo "help you";
}
if ($who=='code') {
unset($who);
if (!isset($who)) {
die('Non-existent');
}
}
}
?>
你和代码掉入水中,我选择救你,没有其他可能