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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -