cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/demos/faces/resources/lib.php

9 lines
180 B
PHP
Raw Normal View History

<?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;
}