Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Escape Character

Escape characters are special characters, that introduce a special meaning, for example when redacting an escape sequence.

Escape characters are often generating a special sequence to escape themselves and allow their literal meaning to be expressed.

In strings and HEREDOC, the escape character is the backslash: \.

<?php

    echo '<a href="https://www.exakat.io/" />';
    
    // This prevents the variable $trunk to be interpolated
    echo <<<HEREDOC
    echo $trunk;
HEREDOC;

?>

Documentation

See Also