This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RegularExpression | |
常用正则表达式大全汇总(持续更新中……) | |
校验数字的表达式 | |
数字:^[0-9]*$ | |
n位的数字:^\d{n}$ | |
m-n位的数字:^\d{m,n}$ | |
至少n位的数字:^\d{n,}$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Multipart { | |
const EOL = "\r\n"; | |
private $_data = ''; | |
private $_mime_boundary; | |
public function __construct() { | |
$this->_mime_boundary = md5(microtime(true)); | |
} |