<?php
$limit = 1;
if ($limit) {
$me = $limit;
} else {
$me = 0;
}
echo $me;
This code is dumb and that's a good thing. Now look at this smart code.$limit = 1; $count = (!$limit ? '0' : $limit); echo $count;
So yeah, the lesson here is be dumb. Don't be smart. If you are smart, you will write bad code and you should feel bad.