
PHP
PHP
最新博文
-
PHP中判断字符串是否含有中文
PHP## 判断全是中文 > 方法一 ``` $str = '吾爱编程'; if (preg_match_all("/^([\x81-\xfe][\x40-\xfe])+$/", $str, $match)) { echo '全部是中文'; } else { echo '不全是中文'; } ``` > 方法二 ``` $str="'吾爱it编程"; if(!eregi("[^\x80-\xff]","$str")){ echo "全是中文";
阅读更多2022-08-23【PHP】
-
PHP日历
PHPPHP日历小案例
阅读更多2022-04-17【PHP】
-
dedecms Allowed memory size of /include/helpers/string.helper.php
PHPdedecms Allowed memory size of /include/helpers/string.helper.php
阅读更多2022-04-01【PHP】
-
windows下安装PHP扩展Imagick
### 1、查看PHP版本信息 > phpinfo()  ### 2、下载imagemagick程序 **地址** http://windows.php.net/downloads/pecl/deps/ 下载这个区域里面的对应版本.选择最高版本,我需要下载vc15的64位的 { global $wp_query; if(!is_tax
阅读更多2022-02-25【PHP】
-
worldpress 主题的 functions.php
worldpress 主题的 functions.php
阅读更多2022-02-24【PHP】
-
worldpress 模板标签
worldpress 模板标签
阅读更多2022-02-24【PHP】
-
WordPress 主题模板说明
> ## 模板文件层次结构 ### 概述 WordPress 使用查询字符串来决定应该使用哪个模板来显示页面。查询字符串是包含在网站每个部分的链接中的信息。它出现在初始问号之后,可能包含许多由&符号分隔的参数。 简而言之,WordPress 向下搜索模板层次结构,直到找到匹配的模板文件。要确定要使用的模板文件,WordPress: 1. 将每个查询字符串与查询类型匹配,来确定用户请求的是哪种类型的页面(例如,搜索页面,类别页面等); 2. 按模板层次结构确定使用哪个模板文件来
阅读更多2022-02-23【PHP】
-
WordPress主题style.css说明
WordPress主题style.css说明
阅读更多2022-02-23【PHP】
-
worldpress后台头像被墙访问慢,解决方法
PHP> 在主题文件夹里面的 `functions.php` 中加入以下代码 - gravatar.loli.net - fdn.geekzu.org - dn-qiniu-avatar.qbox.me - cdn.v2ex.com/gravatar/ ``` function duoshuo_avatar($avatar) { $avatar = str_replace(array("www.gravatar.com","0.gravatar.com","1.gravatar.c
阅读更多2022-01-14【PHP】