Home:ALL Converter>If Variable doesn't exist echo

If Variable doesn't exist echo

Ask Time:2017-03-08T20:17:54         Author:AllordEmad

Json Formatter

I want to write some thing if for example $var doesn't exist this what i want

$var = "Powered by company name";
if(!$var){
echo "doesn't exist ";
}

I want to use it in copyright if my copyright doesn't exist in the page i want to show the msg "doesn't exist "

Author:AllordEmad,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42671194/if-variable-doesnt-exist-echo
Nishit Manjarawala :

you can not do that insted you do\ndefine $var firstlike demo\n\n$var=\"\";\n\n\nnow code\n\nif($var==\"\"){\n}else{\n}\n",
2017-03-08T12:20:50
yy