cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/demos/faces/resources/lib.php
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

8 lines
180 B
PHP

<?php
function getClanName($fullname){
preg_match('/[a-zA-Z]([A-Z]{1}[a-zA-Z]*)/', $fullname, $matches);
$ret = empty($matches[1]) ? "_noclan_" : $matches[1];
return $ret;
}