Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÊÖ»úºÅÂëÅжÏphpº¯Êý£¬°üº¬15ºÅ¶Î

 <?php

function checkMobile($str)
{
$pattern = "/^(13|15)\d{9}$/";
if (preg_match($pattern,$str))
{
Return true;
}
else
{
Return false;
}
}
$str = checkMobile("15800000001");
if($str)
{
echo("·ûºÏÊÖ»úºÅÂë±ê×¼");
}
else
{
echo("²»·ûºÏÊÖ»úºÅÂë±ê×¼");
}
?>
 


Ïà¹ØÎĵµ£º

»ùÓÚPHPµÄÐÂWeb¿ª·¢¿ò¼Ü

±¾ÎÄת×Ô:http://www.msphome.cn/post/119/
    ×î½üÒòΪҪ¶ÔÒ»¸öÏîÄ¿½øÐÐÖع¹£¬ËùÒÔÒ»Ö±ÔÚÑо¿PHP¿ò¼Ü¡£´óÌå¿´ÁË¿´Zend Frameworks£¬×ÐϸѧϰÁËÏÂsymfony£¬·¢ÏÖÒ»¸öÁ¼ºÃµÄMVC Web¿ò¼Ü£¬×ãÒԸı俪·¢Ï°¹ß¡£µ«ÊÇÎÞÂÛÊÇZend Frameworks»¹ÊÇsymfony£¬¶ÔÓÚÖÐСÐÍÏîÄ¿µÄ¿ª·¢À´Ëµ¶¼¹ýÓÚÓ·Ö×£¬²¢²»ÄܺܺõÄÌáÉý¿ª· ......

php×Ô¶¯·¢ËÍÓʼþ

Ê×ÏÈÀ´¸ö email.class.php Àࣺ
   <?php
class smtp
{
/* Public Variables */
var $smtp_port;
var $time_out;
var $host_name;
var $log_file;
var $relay_host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function smtp($rel ......

PHP¼òµ¥·ÖÒ³

  <?php 
   //¸Ä±äÊý¾Ý¿âÃûÖ®ºó¼´¿ÉʹÓõķÖÒ³
    include 'conn.php';  //ÕâÀïÌí¼ÓÒ»¸öÊý¾Ý¿âÁ¬½Ó¼´¿É£¬±ä»»³É×Ô¼ºÉ趨µÄÁ´½Ó
    $page=$_GET['page']; //·­Ò³Ñ¡Ïî Ê×Ò³£¬ÏÂÒ»Ò³£¬ÉÏÒ»Ò³£¬Î²Ò³
    $current= $_GET ......

PHP һЩӦ¸ÃÖªµÀµÄÊÂÇé

PHPÔËÐйý³Ì
¼òµ¥µãµÄ
ä¯ÀÀÆ÷ -> web·þÎñÆ÷ -> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ -> php½âÊÍÆ÷ -> web·þÎñÆ÷ -> ä¯ÀÀÆ÷
´ó¼ÒÎÕ¼¸¸öÊÖ
¸´ÔÓµãµÄ ä¯ÀÀÆ÷ -----------------------------> web·þÎñÆ÷-> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ ….
PHPÔËÐлúÖÆ
2009-10-20 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ