isset needs to be used on all variables in if statements?
<p>If I use an if statement like,</p>

<pre><code>&lt;?php if(strlen($variable) &gt;=3) { ... } ?&gt;
</code></pre>

<p>and the variable isn't actually set, this would bring me an error in PHP 5(3.6). But if I use isset() <strong>and</strong> strlen(), it would not. However, in PHP 4(4.9), when I use only strlen(), it comes through completely fine, without any errors.</p>

<p>Is this something that has changed since version 4.4.9? If not, is there a way I can bring back the old fashioned way of checking variables in php.ini? I find it really strange that you'd have to run both of these functions on a variable, as it really makes the code more messy than necessary. Especially if you're working with ternary operators...</p>

<p>To be exact, I'm working on a GET variable, and I'm getting these kind of errors:<br>
Undefined index: x in file.php on line x</p>
