Could you not use a cleaner code style like:
<?php
if( intval( mysql_num_rows( $req2 ) )===0 ){
echo '(No reply)';
} else {
echo '( '.( $dn2['reps']-1 ).'time reply )';
}
?>
More Related Contents:
- PHP: What’s the speed difference “template” vs “quote”? [duplicate]
- What is the use of PHP Callbacks? [closed]
- How print in Jquery / Datatables [closed]
- How to group subarrays by a column value?
- Correct file permissions for WordPress [closed]
- How to check if a date is in a given range?
- How unique is the php session id
- What does the “[^][]” regex mean?
- Check if a user/guest has purchased specific products in WooCommerce
- How do I migrate my site from mysql to mysqli? [duplicate]
- How do I count occurrence of duplicate items in array [duplicate]
- PHP remove duplicate values from multidimensional array
- PHP – remove tag from string
- Get file content from URL?
- How to check if a string is one of the known values?
- Edit Google calendar events from Google service account: 403
- mysql_real_escape_string is undefined
- Loop through an XML object with SimpleXML
- Parse error: Invalid numeric literal
- Remove unwanted elements from subarrays in multidimensional array
- CakePHP Database connection “Mysql” is missing, or could not be created
- How to write to error log file in PHP [closed]
- Display an array in a readable/hierarchical format [duplicate]
- Is it possible to capture search term from Google search?
- UNION syntax in Cakephp
- Open Download Dialog with PHP
- Filter rows of a 2d array by the rows in another 2d array
- How to make public folder as root in Laravel?
- Laravel: Validate maximum File size?
- How to do single sign-on with PHP? [closed]