本文整理汇总了PHP中StringUtils::my_ucwords方法的典型用法代码示例。如果您正苦于以下问题:PHP StringUtils::my_ucwords方法的具体用法?PHP StringUtils::my_ucwords怎么用?PHP StringUtils::my_ucwords使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringUtils
的用法示例。
在下文中一共展示了StringUtils::my_ucwords方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: adduser
function adduser($course, $tmp_roles, $new_username, $mysqli)
{
$new_password = trim($_POST['new_password']);
$new_surname = StringUtils::my_ucwords(trim($_POST['new_surname']));
$new_title = $_POST['new_users_title'];
$new_email = trim($_POST['new_email']);
$new_first_names = StringUtils::my_ucwords(trim($_POST['new_first_names']));
$new_year = $_POST['new_year'];
$new_gender = $_POST['new_gender'];
$userid = UserUtils::create_user($new_username, $new_password, $new_title, $new_first_names, $new_surname, $new_email, $course, $new_gender, $new_year, $tmp_roles, '', $mysqli);
return $userid;
}
示例2: stdClass
$data = new stdClass();
$data->lookupdata = $_SESSION['ldaplookupdata'][$_REQUEST['LOOKUP']];
$output = $lookup->userlookup($data);
if (!isset($output->lookupdata->yearofstudy)) {
$output->lookupdata->yearofstudy = '';
}
if (!isset($output->lookupdata->studentID)) {
$output->lookupdata->studentID = '';
}
if (!isset($output->lookupdata->coursecode)) {
$output->lookupdata->coursecode = '';
}
if (!isset($output->lookupdata->gender)) {
$output->lookupdata->gender = '';
}
$output->lookupdata->title = StringUtils::my_ucwords($output->lookupdata->title);
// Stop problems with uppercase titles.
if ($output->lookupdata->title == 'Prof') {
$output->lookupdata->title = 'Professor';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="content-type" content="text/html;charset=<?php
echo $configObject->get('cfg_page_charset');
?>
"/>
<title>LDAP <?php