I want to echo some html if a variable isn't empy, for this I know I can do the following:
if (!empty($test)) {
?>
<p>Some nice html can go here</p>
<?php
}
else
{
echo "It's empty...";
}
How can I do this for several variables? So if one of the variables are not empty then echo the html? Would this do it?
if (!empty($test || $image || $anothervar)) {
?>
<p>Some nice html can go here</p>
<?php
}
else
{
echo "It's empty...";
}