How can i write this shortly?
$abc = file_get_contents('one.txt');
if($abc !== '')
{
msg($abc);
} else {
msg('nope');
}
I tried:
$abc = file_get_contents('one.txt');
if($abc !== '') ? msg($abc) : msg('nope');
or
$abc = file_get_contents('one.txt');
msg if($abc !== '') ? $abc : 'nope';
and not working, please help!