Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

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

The Note You're Voting On

fgilles at free dot fr
24 years ago
Exempla of use for a forum: users can't post messages too much uppercased

<?php
if ((strlen($subject)>10) and ( ( levenshtein ($subject, strtolower ($subject) / strlen ($subject) ) > .3 ) ){
$subject = strtolower($subject);
}
?>

<< Back to user notes page

To Top