dimanche 29 juillet 2018

Hide DIV if function is empty

let's say I have the following code, how can I hide the DIV if the function is empty?

Similarly, how can I show another DIV if the function is empty?

<div class='box12'>
<h1>text<h1/>
<p><?php echo name5(); ?><p/>
</div>

Aucun commentaire:

Enregistrer un commentaire