本文整理匯總了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);
}