Your open source Rocks PHP Library has really made developing PHP easier! 你的開放烴源岩的PHP庫,確實使發展中國家的PHP更容易!”
艾倫

RocksFormComparisionRegex類

描述

這是一個驗證的原因比較反對一個regex領域。

這簡化了常見的問題做表單處理和驗證。 通常是在內部使用這個類。

  • string $regex: the regex to use for comparision 屬性:字符串$正則表達式:正則表達式使用比較
  • string $message: the message to use if the comparision against the regular expression fails. 屬性:字符串$消息:使用,如果對正則表達式比較失敗的消息。
  • Dominic Skinner 作者:多米尼克·斯金納
  • 0.2.1 版本:0.2.1

)位於/ RocksFormComparisionRegex.php(13號線)

方法摘要
__construct ( string $regex , string $message ) RocksFormComparisionRegex __construct字符串 $正則表達式字符串 $消息
__get ( 無效 __get ) $名
方法
(line 23 ) 構造_建設 (第23行)

這將創建的regex ​​comparission。

  • public 訪問:公眾
__construct ( string $regex , string $message ) RocksFormComparisionRegex _結構字符串, 正則表達式字符串 $消息
  • $regex : this is the regex to compare against the field 字符串 $正則表達式 :這是比較領域的regex
  • $message : this is message that is displayed if the regex does not match the field 字符串 $消息 :這是消息顯示,如果正則表達式不匹配字段
(line 34 ) __get(34行)
  • public 訪問:公眾
__get ( 函數void __得到 ) $名
  • 元名稱

已提供任何意見。
安全形象

書面由多米尼克·斯金納
最後更新:2011年10月25日十六點00分38秒