ajax posting NAN valie : Im posting a variable via ajax however when I use it in php I get NAN why is that ? its supposed to be a number

//in js

    var variableToSend = 1;
    $.post('ajax.php', {variable: variableToSend});


      <?php echo $_POST['variable']?>;