Difference between two PHP variable definitions
<p>I have two variable definitions, and I am trying to understand the difference between the two so I can merge them into one.</p>

<p><strong>PHP Definition 1:</strong></p>

<pre><code>$page = $_GET['page'];
</code></pre>

<p><strong>PHP Definition 2:</strong></p>

<pre><code>$page = 0;
 if(isset($_GET['page'])){
    $page = (int) $_GET['page'];
 }
</code></pre>
