<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>L. MIS - PHP函數(5.4版)</title>
    <link>https://mis.linyumo.tw/forum-2-1.html</link>
    <description>Latest 20 threads of PHP函數(5.4版)</description>
    <copyright>Copyright(C) L. MIS</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 04 Jun 2026 19:07:50 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://mis.linyumo.tw/static/image/common/logo_88_31.gif</url>
      <title>L. MIS</title>
      <link>https://mis.linyumo.tw/</link>
    </image>
    <item>
      <title>unset()-強迫變數自記憶體中釋放</title>
      <link>https://mis.linyumo.tw/thread-146-1-1.html</link>
      <description><![CDATA[void unset (mixed $var [,mixed $...])
說明：
    用來移除變數的值，清除後並不會回傳任何結果，單純使用 unset 只要將變數交給 unset 函式處理即可,但要注意的是如
    果想移除的變數為function中的全域變數（global）則只是局部變數移除而已。   
    mixed：一個 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 06:33:55 +0000</pubDate>
    </item>
    <item>
      <title>PHP中的脫逸字元</title>
      <link>https://mis.linyumo.tw/thread-145-1-1.html</link>
      <description><![CDATA[PHP中的脫逸字元]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 06:30:31 +0000</pubDate>
    </item>
    <item>
      <title>func_num_args()-自動取得呼叫函式時所附加傳遞的參數數量</title>
      <link>https://mis.linyumo.tw/thread-144-1-1.html</link>
      <description><![CDATA[func_num_args (void )
說明：
統計傳入函數參數的個數

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 06:28:58 +0000</pubDate>
    </item>
    <item>
      <title>func_get_args()-以陣列的方式取出對應的參數數值</title>
      <link>https://mis.linyumo.tw/thread-143-1-1.html</link>
      <description><![CDATA[func_get_args (void )
說明：
該函數可以配合   func_get_arg()     和   func_num_args()    一起使用，從而使得使用者自訂函數可以接受自訂個數的參數列表
返回一個陣列，其中每個元素都是目前使用者自訂函數的參數清單的相應元素的副本
返回一個包含函數参數列表的 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 06:25:39 +0000</pubDate>
    </item>
    <item>
      <title>strcmp()-字串比對</title>
      <link>https://mis.linyumo.tw/thread-142-1-1.html</link>
      <description><![CDATA[strcmp($str1,$str2)
說明：
$str1 &lt; $str2則傳回小於零的值
$str1 &gt; $str2則傳回大於零的值
$str1 = $str2則傳回零
注意 : 這個比對是會區分大小寫

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 06:22:47 +0000</pubDate>
    </item>
    <item>
      <title>strcasecmp()-不分大小寫字串比對</title>
      <link>https://mis.linyumo.tw/thread-141-1-1.html</link>
      <description><![CDATA[strcasecmp($str1,$str2)
說明：
$str1 &lt; $str2則傳回小於零的值
$str1 &gt; $str2則傳回大於零的值
$str1 = $str2則傳回零
注意 : 這個比對是不區分大小寫

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 01:52:31 +0000</pubDate>
    </item>
    <item>
      <title>soundex()-計算字串字母發音數值</title>
      <link>https://mis.linyumo.tw/thread-140-1-1.html</link>
      <description><![CDATA[soundex($str)
說明：
利用英文字的讀音近似值所求得的值，值由四個字符構成，第一個字符為英文字母，後三個為數字。在拼音文字中有時會有會念但不能拼出正確字的情形，特別是在做搜尋引擎時面對用戶傳入的英文字符串，可用本函數做類似模糊比對的效果。

程式碼範例：
 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 01:49:46 +0000</pubDate>
    </item>
    <item>
      <title>metaphone()-計算字串的metaphone key</title>
      <link>https://mis.linyumo.tw/thread-139-1-1.html</link>
      <description><![CDATA[metaphone($str)
說明：
這個函數返回單詞的metaphone值，相同讀音的單詞具有相同的metaphone值，也就是說這個函數可以幫你判斷兩個單詞的讀音是否相同。

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 01:47:17 +0000</pubDate>
    </item>
    <item>
      <title>levenshtein()-計算二字串間不同的差距</title>
      <link>https://mis.linyumo.tw/thread-138-1-1.html</link>
      <description><![CDATA[levenshtein($str1,$str2)
說明:
此函式傳回二參數間的  Levenshtein-Distance
Levenshtein-Distance是定義成最小的字元數目，你必須取代、插入或刪除來改變 str1成為 str2。演算法的錯綜性是 0(m*n)，n是參數 str1的長度，m是參數 str2的長度。
PS：與 similar_text()  ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 01:42:42 +0000</pubDate>
    </item>
    <item>
      <title>similar_text()-計算二字串間的相似度</title>
      <link>https://mis.linyumo.tw/thread-137-1-1.html</link>
      <description><![CDATA[similar_text($first,$second,[double percent])
說明：
計算二字串間的相似度，這個演算法的錯綜性是 0(N**3)，N是最長字串的長度。
傳遞第三個參數[double percent](選項)給函式，similar_text( )將會計算出以百分比表示的相似度，它傳回二字串間相配的字串的數目。
P ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Fri, 28 Jul 2023 01:36:10 +0000</pubDate>
    </item>
    <item>
      <title>strpos()-找出字串第一次出現的位置</title>
      <link>https://mis.linyumo.tw/thread-136-1-1.html</link>
      <description><![CDATA[strpos($haystack, $pos, [$offset])
說明：
$haystack：被搜索的字串
$pos：要查找的字符
$offset：為選項,此選項為設定開始搜尋的位置
傳回參數 pos在字串 haystack中第一次出現的位置，由左至右漸進式的搜尋，以數字表示，會區分大小寫,不適合中文字的搜尋
若找不到 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:30:57 +0000</pubDate>
    </item>
    <item>
      <title>strrpos()-找出字元最後一次出現的位置</title>
      <link>https://mis.linyumo.tw/thread-135-1-1.html</link>
      <description><![CDATA[strrpos($haystack, $pos, [$offset])
說明：
$haystack：被搜索的字串
$pos：要查找的字符
$offset：為選項,此選項為設定開始搜尋的位置
傳回參數 pos在字串 haystack中最後一次出現的位置，由右至左漸進式的搜尋，以數字表示，會區分大小寫,不適合中文字的搜尋
若找不 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:27:24 +0000</pubDate>
    </item>
    <item>
      <title>strstr()-找出指定字串第一次出現的地方並輸出後面的字串</title>
      <link>https://mis.linyumo.tw/thread-134-1-1.html</link>
      <description><![CDATA[strstr($haystack, $pos)
說明：
$haystack：被搜索的字串
$pos：搜索的字串。如果該參數是數字，則搜索匹配數字ASCII 值的字串
傳回參數 $pos在 $haystack中，第一次出現處到 $haystack結尾的字串。
如果沒有找到 $pos則傳回 false。

程式碼範例：


執行結果：


 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:22:13 +0000</pubDate>
    </item>
    <item>
      <title>substr_replace()-取代字串中,指定範圍的字串</title>
      <link>https://mis.linyumo.tw/thread-133-1-1.html</link>
      <description><![CDATA[substr_replace($newstr, $haystack, $start, $length)
說明：
$newstr：要查詢的字串
$haystack：要替換的字串
$start：正數---取代的字串將會開始於字串的第 $start個字元
                        負數---從字串結尾的第start個字元開始替換                     
   ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:19:45 +0000</pubDate>
    </item>
    <item>
      <title>str_replace()-取代所有在字串中出現的字串</title>
      <link>https://mis.linyumo.tw/thread-132-1-1.html</link>
      <description><![CDATA[str_replace($newstr, $haystack, $subject)
說明：
將所有在參數 $subject中出現的 $newstr以參數$haystack取代

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:16:52 +0000</pubDate>
    </item>
    <item>
      <title>number_format()-格式化數字字串</title>
      <link>https://mis.linyumo.tw/thread-131-1-1.html</link>
      <description><![CDATA[number_format($a, $decimals, $dec_point, $thousands_sep)
說明:
$a為變數值，若沒加參數$decimals則傳回的字串只有整數部份，加了此參數才依參數指定的小數點位數傳回。參數dec_point表示小數點的表示方式方法，內定值是\&quot;.\&quot;，若需要轉換成其它的小數點就可以在這個參 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Thu, 27 Jul 2023 03:12:48 +0000</pubDate>
    </item>
    <item>
      <title>strtolower()-將字串全部轉換成小寫</title>
      <link>https://mis.linyumo.tw/thread-130-1-1.html</link>
      <description><![CDATA[strtolower($str)
說明：
傳回 str所有字母字元轉換成小寫後的字串
PS：與 strtoupper() 函數功能相異

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Tue, 25 Jul 2023 07:00:20 +0000</pubDate>
    </item>
    <item>
      <title>array_map()-由陣列取出再由喚回函數處理後交回陣列</title>
      <link>https://mis.linyumo.tw/thread-129-1-1.html</link>
      <description><![CDATA[array_map($callback, $myarray,..)
說明：
$callback：用戶自定義函數的名稱
$myarray：陣列,可設定多組
返回用戶自定義函數作用後的數組

程式碼範例：


執行結果：



多陣列程式碼範例：


執行結果：


 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Tue, 25 Jul 2023 06:55:25 +0000</pubDate>
    </item>
    <item>
      <title>strtoupper()-將字串全部轉換成大寫</title>
      <link>https://mis.linyumo.tw/thread-127-1-1.html</link>
      <description><![CDATA[strtoupper($str)
說明：
傳回 str所有字母字元轉換成小寫後的字串
PS：與 strolower() 函數功能相異

程式碼範例：


執行結果：]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Tue, 25 Jul 2023 06:11:17 +0000</pubDate>
    </item>
    <item>
      <title>array_filter()-陣列過濾</title>
      <link>https://mis.linyumo.tw/thread-126-1-1.html</link>
      <description><![CDATA[array_filter($array, $callback)
說明：
$array：指定輸入的陣列
$callback：提供陣列資料處理的回呼函式名稱
依序將指定輸入陣列中的資料傳遞到回呼函式中進行處理
PS：與 array_map() 不同地方在於array_filter()函式接受回傳自回呼函式的資料必須是布林值的類型，當 ...]]></description>
      <category>PHP函數(5.4版)</category>
      <author>admin</author>
      <pubDate>Tue, 25 Jul 2023 06:06:55 +0000</pubDate>
    </item>
  </channel>
</rss>