Voting

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

The Note You're Voting On

php at dmi dot me dot uk
15 years ago
To split a camel-cased string using preg_split() with lookaheads and lookbehinds:

<?php
function splitCamelCase($str) {
return
preg_split('/(?<=\\w)(?=[A-Z])/', $str);
}
?>

<< Back to user notes page

To Top