What does this PHP syntax mean and why is this variable NaN?
<p>question marks are hard to search for in google.</p>

<p>What does this mean step by step?</p>

<pre><code> $page = isset($_POST['page'])?$_POST['page']:"0";
</code></pre>

<p>I am guessing it means if <code>Post['page']</code> is set use that value and if not use <code>0</code>? but i dont get it in detail. Also when I do <code>var_dump($page)</code> i get <code>"NaN"</code> ; even though <code>POST['page']</code> is not set to anything yet. What's going on?</p>

<p>--> For full disclosure, I am using this Javascript function to pass the value of page..for a "load more"/pagination functionality.</p>

<pre><code>$(function(){
    $("#more").click(loadPosts);
    loadPosts();
      var count = 0;
        var num = 2;
    function loadPosts() {
        $(".loading").show("fast");
        count += num;
        $.post("load.php", {'page': count}, function(data){
            $("#contents").append(data);
            $(".loading").hide("fast");
        });
    }
});
</code></pre>
