CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: max(six, two)?
(Example: nine)

The Note You're Voting On

workhorse at op dot pl
13 years ago
Preg_match returns empty result trying to validate $subject with carriege returns (/n/r).
To solve it one need to use /s modifier in $pattern string.
<?php
$pattern
='/.*/s';
$valid=preg_match($pattern, $subject, $match);
?>

<< Back to user notes page

To Top