Just string concatenation
$str .= '<div class="level">'.($row['point'] > 3 ? 'BEST' : '').'</div>';
More Related Contents:
- How to make array inside in foreach loop – php? [closed]
- How do I dynamically generate URLs?
- URL Rewriting of a query string in php [duplicate]
- How do I expire a PHP session after 30 minutes?
- How can I prevent SQL injection with dynamic tablenames?
- Form submit with AJAX passing form data to PHP without page refresh [duplicate]
- How to avoid echoing character 65279 in php?
- “Unknown modifier ‘g’ in…” when using preg_match in PHP?
- What type of hash does WordPress use?
- Is it possible to redirect post data?
- Get absolute path of initially run script
- Add extra meta for orders in Woocommerce
- RGB to HSV in PHP
- Is it ever ok to store password in plain text in a php variable or php constant?
- Warning: preg_match() [function.preg-match]: Unknown modifier ‘/’ [duplicate]
- Downloading attachments to directory with IMAP in PHP, randomly works
- How come checkbox state is not always passed along to PHP script?
- Make multiple files to force-download
- Array_map function in php with parameter
- How to merge two arrays by summing the merged values [duplicate]
- Parse a JavaScript file through PHP
- How can I use PHP to dynamically publish an ical file to be read by Google Calendar?
- How to Merge Two Eloquent Collections?
- Upload Images On Twitter Using PHP
- ErrorException : implode(): Passing glue string after array is deprecated. Swap the parameters
- Cannot figure out how to run a mysqli_multi_query and use the results from the last query
- refresh a part of webpage in php [closed]
- PHP add up two time variables
- Composer install error – requires ext_curl when it’s actually enabled
- How to output in CLI during execution of PHP Unit tests?