Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How do I make a harcoded value in PHP conditionally dynamic?

I have a piece of code where I need to make a value dynamic rather than hard coded. The code looks like this.
<?php if(!empty($multi_size) || !empty($gallery_link)) { echo '<li class=""><a href="#tab-specification" data-toggle="tab" aria-expanded="false">Video & allegati</a></li>'; } ?>  

Open in new window


The value I'd like to change between true/false is aria-expanded='false'

The condition is: if $company_desc is empty then set that value to true, else set it to false.

please help

thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial