当前位置: 首页>>代码示例>>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;未经允许,请勿转载。