-1
どうすればこのように書くことができますか?php else for function shorthand
$abc = file_get_contents('one.txt');
if($abc !== '')
{
msg($abc);
} else {
msg('nope');
}
私が試した:
$abc = file_get_contents('one.txt');
if($abc !== '') ? msg($abc) : msg('nope');
または
$abc = file_get_contents('one.txt');
msg if($abc !== '') ? $abc : 'nope';
ない作業を、助けてください!
'MSG($ abcの$ ABC:? 'いいえ')'? – Progrock