- assert: documentation ( source)
- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
$str = 'assert(): Assertion ""Foo" === "bar"" failed in /in/joNsK on line 3';
if (preg_match('~".+"~', $str, $match)) {
print_r($match);
}
assert('\'Foo\' === \'bar\'');