php - if else shorthand solution -
php - if else shorthand solution -
i not sure if next validation can done if shorthand.
//if $error set, echo $errro or echo blank string. (isset($error)) ? echo $error:echo '';
i know got wrong, here can help me right code? lot.
echo isset($error) ? $error : '';
php if-statement shorthand
Comments
Post a Comment