Does PHP have keyword or feature that shortens code and repetition like jquery $(this)?
For example
// How to avoid typing same variable twice
echo isset($_POST['foo']) ? $_POST['foo'] : '';
In Jquery
<script>
    // Avoid typing $("#button-element") again
    $("#button-element").click(function() {
        $(this).css("border-color", "#000");
    });
</script>
 
    