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
Post a Comment