當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UTF8::get_value方法代碼示例

本文整理匯總了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();
 }
開發者ID:benshez,項目名稱:DreamWeddingCeremonies,代碼行數:18,代碼來源:Contact.php

示例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);
 }
開發者ID:benshez,項目名稱:DreamWeddingCeremonies,代碼行數:5,代碼來源:Contact.php


注:本文中的UTF8::get_value方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。