本文整理汇总了PHP中UTF8::get_value方法的典型用法代码示例。如果您正苦于以下问题:PHP UTF8::get_value方法的具体用法?PHP UTF8::get_value怎么用?PHP UTF8::get_value使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UTF8
的用法示例。
在下文中一共展示了UTF8::get_value方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: create_user_meta
public function create_user_meta()
{
$this->_user_id = $this->unique_key_value($this->_user_email, "user_email");
$rows = $this->_usermeta_rows();
$query = DB::insert("usermeta", $this->_usermeta_columns());
foreach ($rows as $key => &$value) {
$rows[$key] = UTF8::str_ireplace(":id", $this->_user_id, $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":name", UTF8::ucfirst($this->_display_name), $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":level", "0", $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":capabilities", "a:1:{s:8:\"customer\";b:1;}", $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":billing_first_name", UTF8::get_value($this->_form, "display_name"), $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":billing_email", UTF8::get_value($this->_form, "user_email"), $rows[$key]);
$rows[$key] = UTF8::str_ireplace(":billing_phone", UTF8::get_value($this->_form, "phone"), $rows[$key]);
$query->values($rows[$key]);
}
//Debug::vars((string) $query);
$query->execute();
}
示例2: _send_mail
private function _send_mail()
{
$message = array("user" => array("name" => "admin@dreamweddingceremonies.com.au", "from" => "admin@dreamweddingceremonies.com.au", "from_name" => UTF8::ucfirst(UTF8::get_value($this->_form, "display_name")), "to" => "admin@dreamweddingceremonies.com.au", "subject" => UTF8::get_value($this->_form, "reason"), "html" => UTF8::get_value($this->_form, "message"), "user_email" => UTF8::get_value($this->_form, "user_email")));
Mailer::factory("user", "say_hello", $message);
}