CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: seven plus two?
(Example: nine)

The Note You're Voting On

Anonymous
4 years ago
I discovered that, in addition to escaping the special regular expression characters, preg_quote() encodes the NUL byte to its octal representation:

<?php
var_dump
(preg_quote("\0"));
?>

Output:

string(4) "\000"

<< Back to user notes page

To Top