Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - Conditional:: show URL if value !empty

0 votes
added Sep 24, 2019 in PHP by lcjr Staff Sergeant (2,800 points)
<?php if(!empty($profile->field_company_name->value())): ?>  
 <div class="_row">
    <i class="fa fa-certificate" aria-hidden="true"></i>
    <a href="/professional/<?php echo $profile->field_company_name_slug->value() ?>"><?php print $profile->field_company_name->value(); ?></a>
<?php endif;?>


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.