-1

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 "

AllordEmad
  • 31
  • 4

2 Answers2

0

you can not do that insted you do define $var firstlike demo

$var="";

now code

if($var==""){
}else{
}
-1
if (isset($var) && ($var === true)) { ... }
Bilal Ahmed
  • 4,005
  • 3
  • 22
  • 42