PHP 8.5.0 Alpha 4 available for testing

Voting

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

The Note You're Voting On

eyecatchup at gmail dot com
12 years ago
Just a note: Instead of using the often recommended (rather complex) regular expression by W3C (http://www.w3.org/International/questions/qa-forms-utf-8.en.php), you can simply use the 'u' modifier to test a string for UTF-8 validity:

<?php
if (preg_match("//u", $string)) {
// $string is valid UTF-8
}

<< Back to user notes page

To Top