- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
// This is valid, both opening ( and closing )
var_dump(preg_match('~Valid(Regular)Expression~', null));
// This is invalid, no opening ( for the closing )
var_dump(preg_match('~InvalidRegular)Expression~', null));