I'm still a newbie in php and I'm using codeigniter for my backend framework.
I have a table.php
file that will generate a html table in real-time. Then, I encounter some issues.
$output_string .= "<td>".($row->isactive == "0") ? "Activated":"Deactivated"."</td>";
with the above code I get nothing, but with a little change to:
$isactive = ($row->isactive == "0") ? "Activated":"Deactivated";
$output_string .= "<td>".$isactive."</td>";
I get my results, so my question is, why?
Doesn't PHP support question mark operator in string concatenation??