• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP emoji_unified_to_html函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中emoji_unified_to_html函数的典型用法代码示例。如果您正苦于以下问题:PHP emoji_unified_to_html函数的具体用法?PHP emoji_unified_to_html怎么用?PHP emoji_unified_to_html使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了emoji_unified_to_html函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: hasmemcache

function hasmemcache($mem)
{
    global $wecha_id, $point;
    //从memcache服务器获取数据
    $data = $mem->get(realpath("..") . $wecha_id);
    //判断memcache是否有数据
    if (!$data) {
        require 'db.php';
        include '../wall/biaoqing.php';
        $sql = "SELECT * FROM  `weixin_shake_toshake` WHERE wecha_id='{$wecha_id}'";
        $query1 = mysql_query($sql, $link) or die(mysql_error());
        $q = mysql_fetch_assoc($query1);
        if ($q) {
            $q['phone'] = pack('H*', $q['phone']);
            $q['phone'] = emoji_unified_to_html(emoji_softbank_to_unified($q['phone']));
            $mem->set(realpath("..") . $q['wecha_id'], $q, MEMCACHE_COMPRESSED, 3600);
        }
    }
    $data = $mem->get(realpath("..") . $wecha_id);
    $start = realpath("..") . "UPDATE  `weixin_wall_config` SET  `isopen` = ";
    $key2 = substr(md5($start), 10, 8);
    $ispen = $mem->get($key2);
    if ($data) {
        $data['point'] = $point;
        $mem->set(realpath("..") . $wecha_id, $data, MEMCACHE_COMPRESSED, 3600);
    } else {
        $ispen = 3;
    }
    if (empty($ispen)) {
        $ispen = 1;
    }
    echo $ispen;
    $mem->close();
    //关闭memcache连接
}
开发者ID:renzg,项目名称:wxwall,代码行数:35,代码来源:commit.php


示例2: __construct

 function __construct()
 {
     global $_W;
     $user_agent = $_SERVER['HTTP_USER_AGENT'];
     if (strpos($user_agent, 'MicroMessenger') === true) {
         $openid = $_W['fans']['from_user'];
         if (empty($openid)) {
             $this->pub_fans = o2::getOuser();
             if (empty($this->pub_fans['openid'])) {
                 message('获取信息失败,请确保是认证服务号或者借用授权的AppId和AppSecret正确');
             }
             $fans = pdo_fetch('SELECT * FROM' . tablename('fans') . " WHERE weid = :weid AND from_user = :from_user", array(':weid' => $_W['weid'], ':from_user' => $this->pub_fans['openid']));
             $user = array('nickname' => emoji_unified_to_html($this->pub_fans['nickname']), 'gender' => $this->pub_fans['sex'], 'residecity' => $this->pub_fans['city'], 'resideprovince' => $this->pub_fans['province'], 'nationality' => $this->pub_fans['country'], 'avatar' => $this->pub_fans['headimgurl']);
             if (empty($fans)) {
                 $user['createtime'] = TIMESTAMP;
                 $user['weid'] = $_W['weid'];
                 $user['from_user'] = $this->pub_fans['openid'];
                 pdo_insert('fans', $user);
             } else {
                 pdo_update('fans', $user, array('weid' => $_W['weid'], 'from_user' => $this->pub_fans['openid']));
             }
         } else {
             $this->pub_fans = o2::getFans($openid);
         }
     }
     //print_r($this->pub_fans);
     //exit();
 }
开发者ID:alextiannus,项目名称:wormwood_wechat,代码行数:28,代码来源:site.php


示例3: auth3

 public function auth3($code)
 {
     $result = $this->get_access_token($code);
     if (!isset($result->errcode)) {
         $this->access_token = $result->access_token;
         $this->expires_in = $result->expires_in;
         $this->refresh_token = $result->refresh_token;
         $this->openid = $result->openid;
         $userInfo = $this->getUserInfo();
         // 改变头像的分辨率
         $userInfo->headimgurl = substr($userInfo->headimgurl, 0, strlen($userInfo->headimgurl) - 1) . '/96';
         // 改变emoji表情编码
         $userInfo->nickname = emoji_softbank_to_unified($userInfo->nickname);
         $userInfo->nickname_html = emoji_unified_to_html($userInfo->nickname);
         Session::put('userInfo', $userInfo);
         if ($userInfo->openid == 'oTIXKt2z1AAxHMxi8MHDaYP4GkzU') {
             return Redirect::to('http://wechat.100steps.net/healing2014/test/vote');
         } else {
             // echo '治愈系工地施工中~';
             return Redirect::to('http://wechat.100steps.net/healing2014/test/vote');
         }
     } else {
         echo 'Invalid code!';
     }
 }
开发者ID:100steps,项目名称:healing2014,代码行数:25,代码来源:HealingController.php


示例4: emoji_c

function emoji_c($body)
{
    $emoji_android = array("", "", "", "⛅", "", "", "", "❄", "", "", "", "", "", "⌚", "⌛", "✉", "", "", "", "", "", "", "✒", "✏", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
    $emoji_ios = array("☺", "⭐", "☀", "⛅", "☁", "⚡", "☔", "❄", "⛄", "❤", "☝", "✌", "☎", "⌚", "⌛", "✉", "✂", " 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP emotion函数代码示例发布时间:2022-05-15
下一篇:
PHP emoji_softbank_to_unified函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap