I'm working on a project where I have a variable in PHP, let's call it `$myVar`. I want to display a block of HTML code only if this variable is not empty.
Basically, I'd like to know how I can use an `if` statement in PHP to check if a variable is empty or not. And if it's not empty, then I want to echo a specific block of HTML code.
Any help would be appreciated! Thanks in advance.