php - Deschifer this bit of code please -


what following bit of code mean in "english"?

just started learning php & codeigniter , cant seem make sense of it.

<meta name="description" content="<?if (isset($contentdata) && isset($contentdata->description)):?><?=$data->description?><?=$contentdata->description?><?endif;?>" /> 

as far understand, gets info database, i'm not sure how, or why 2 conditions must true (&&).

//if there's variable $contentdata , has property ->description <?if (isset($contentdata) && isset($contentdata->description)):?>  //shorthand syntax <?php echo $data->description ?> <?=$data->description?>  //shorthand syntax <?php echo $contentdata->description ?> <?=$contentdata->description?> 

Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -