Quote:
Originally Posted by Disasterpiece
I can trump that.
PHP Code:
if (!$totalthreads) $totalthreads = 1; if (!$totalposts) $totalposts = 1;
PHP Code:
$totalthreads = max($totalthreads,1); $totalposts = max($totalposts,1);
|
nice one , but the most important question here is which one will be processed faster in php? in my opinion the second proposed code by boofo should be the fastest since it only takes 2 values true or false??? of course as lynne says the first one is more readable and easy to customize , i like it the most
nice thread , thanks boofo