<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>英溯IT论坛 - php</title>
    <link>http://it.chao01.com/forum.php?mod=forumdisplay&amp;fid=38</link>
    <description>Latest 20 threads of php</description>
    <copyright>Copyright(C) 英溯IT论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 15 Sep 2026 03:09:21 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://it.chao01.com/static/image/common/logo_88_31.gif</url>
      <title>英溯IT论坛</title>
      <link>http://it.chao01.com/</link>
    </image>
    <item>
      <title>php 过滤邮件，邮件地址里面达到三个.的邮件过滤返回false</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=122</link>
      <description><![CDATA[你可以使用 PHP 的正则表达式来过滤邮件地址，判断其中是否包含三个或更多的点（.）。以下是一个示例代码：

function isValidEmail($email) {
    // 使用正则表达式匹配邮件地址中的点
    if (preg_match(\'/^(.*?\\.){3,}/\', $email)) {
        return false; // 如 ...]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Sat, 15 Mar 2025 00:31:53 +0000</pubDate>
    </item>
    <item>
      <title>recv() failed (104: Connection reset by peer) while reading response header</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=63</link>
      <description><![CDATA[php-fpm配置文件
request_terminate_timeout = 0

解决 recv() failed (104: Connection reset by peer) while reading response header from upstream
http://www.osheep.cn/1424.html]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Sat, 10 Dec 2022 08:52:41 +0000</pubDate>
    </item>
    <item>
      <title>var_dump格式化</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=55</link>
      <description><![CDATA[前面加 var_dump(\&quot;\&quot;);]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Tue, 05 Oct 2021 02:00:22 +0000</pubDate>
    </item>
    <item>
      <title>php判断指定日期是星期几的方法</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=41</link>
      <description><![CDATA[$weekarray=array(\&quot;日\&quot;,\&quot;一\&quot;,\&quot;二\&quot;,\&quot;三\&quot;,\&quot;四\&quot;,\&quot;五\&quot;,\&quot;六\&quot;);
echo \&quot;星期\&quot;.$weekarray[date(\&quot;w\&quot;,strtotime(\&quot;2020-11-4\&quot;))];输出：
星期三
星期四

date()函数的w格式：使用数字表示星期中的第几天，0（表示星期天）到 6（表示星期六）
php判断今天是星期几
header(\'content- ...]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Fri, 16 Apr 2021 07:22:12 +0000</pubDate>
    </item>
    <item>
      <title>php二维数组按照某一列排序的方法</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=35</link>
      <description><![CDATA[/**
]]></description>
      <category>php</category>
      <author>老司机</author>
<enclosure url="/forum/ * @param arr
" length=" * @param field
" type="image/jpeg" />      <pubDate>Mon, 29 Mar 2021 01:45:58 +0000</pubDate>
    </item>
    <item>
      <title>php保留小数点4位,PHP小数点后保留几位的教程实例</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=34</link>
      <description><![CDATA[PHP保留小数点后几位

例子：

说明：

number_format函数用来格式化$number这个数字。

第二个函数decimals用来保留数字后面几位。]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Mon, 29 Mar 2021 01:44:02 +0000</pubDate>
    </item>
    <item>
      <title>mysql格式化小数保留小数点后两位(小数点格式化)</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=29</link>
      <description><![CDATA[mysql&gt; SELECT FORMAT(12332.123456, 4);
-&gt; \'12,332.1235\'
mysql&gt; SELECT FORMAT(12332.1,4);
-&gt; \'12,332.1000\'
mysql&gt; SELECT FORMAT(12332.2,0);
-&gt; \'12,332\'
 

没有达到预期结果，想要的结果不要以逗号分隔，

 

复制代码 代码如下:

select truncate(4545.1366,2 ...]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Sun, 14 Mar 2021 22:01:26 +0000</pubDate>
    </item>
    <item>
      <title>php获取时间是星期几</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=27</link>
      <description><![CDATA[PHP星期几获取代码：

date(\&quot;l\&quot;); //data就可以获取英文的星期比如Sunday
date(\&quot;w\&quot;); //这个可以获取数字星期比如123，注意0是星期日
 

获取中文星期几：

$weekarray=array(\&quot;日\&quot;,\&quot;一\&quot;,\&quot;二\&quot;,\&quot;三\&quot;,\&quot;四\&quot;,\&quot;五\&quot;,\&quot;六\&quot;); //先定义一个数组
echo \&quot;星期\&quot;.$weekarray[date(\&quot;w\&quot;)] ...]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Fri, 12 Mar 2021 09:31:44 +0000</pubDate>
    </item>
    <item>
      <title>2021年最好用的6个php环境搭建工具推荐</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=17</link>
      <description><![CDATA[对于php开发初学者来说搭建一个php运行坏境就是一道坎！因为要做php开发，搭建一个能够运行php网站的服务器环境是第一步，传统的php环境软件非常复杂，好在很多公司开发了一键搭建php安装环境，一键进行php环境配置，大大节省了搭建php mysql环境的时间！对老手来说安装 ...]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Tue, 09 Feb 2021 01:42:46 +0000</pubDate>
    </item>
    <item>
      <title>php当前时间加天数的算法</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=12</link>
      <description><![CDATA[date(\'Y-m-d\',strtotime($showtime . \'+\'.$size.\' day\'));]]></description>
      <category>php</category>
      <author>老司机</author>
      <pubDate>Fri, 29 Jan 2021 01:08:49 +0000</pubDate>
    </item>
    <item>
      <title>使用CURL实现GET和POST方式请求</title>
      <link>http://it.chao01.com/forum.php?mod=viewthread&amp;tid=1</link>
      <description><![CDATA[CURL请求，支持GET和POST两种方式，默认为GET方式，如果传第二个参数则为POST方式请求，设置了超时时间，避免程序卡死。

/**
  使用curl方式实现get或post请求
  @param $url 请求的url地址
  @param $data 发送的post数据 如果为空则为get方式请求
  return 请求后获 ...]]></description>
      <category>php</category>
      <author>赵淑宁</author>
      <pubDate>Mon, 25 Jan 2021 07:48:38 +0000</pubDate>
    </item>
  </channel>
</rss>