website - Is it possible to write an if statement for a PHP meta description? -


i wanted know if possible write if statement php meta description.

i know basic description

<meta name="description" content=<?php echo e($this->video['title']); ?> 

i asking if possible make if statement check if title blank or that.

i not sure question may looking for:

if(e($this->video['title'])!=""){//checking if title not blank  ?> <meta name="description" content="<?php echo e($this->video['title']); ?>"><?php }?> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -