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

PHPº¯Êý£ºctype_digit

 (PHP 4 >= 4.0.4)
¹¦ÄÜ˵Ã÷£ºCheck for numeric character(s)
Description
bool ctype_digit ( string text)
Returns TRUE if every character in text is a decimal digit, FALSE otherwise.
Àý×Ó 1. A ctype_digit() example
<?php $strings = array('1820.20', '10002', 'wsl!12'); foreach ($strings as $testcase) {
if (ctype_digit($testcase)) {
echo "The string $testcase consists of all digits.\n";
} else {
echo "The string $testcase does not consist of all digits.\n";
}
} ?>
This example will output :
The string 1820.20 does not consists of all digits. The string 10002 consists of all digits. The string wsl!12 does not consists of all digits.
PHPº¯Êý£ºctype_xdigit
(PHP 4 >= 4.0.4)
¹¦ÄÜ˵Ã÷£ºCheck for character(s) representing a hexadecimal digit
Description
bool ctype_xdigit ( string text)
Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , FALSE otherwise.
Àý×Ó 1. A ctype_xdigit() example
<?php $strings = array('AB10BC99', 'AR1012', 'ab12bc99'); foreach ($strings as $testcase) {
if (ctype_xdigit($testcase)) {
echo "The string $testcase consists of all hexadecimal digits.\n";
} else {
echo "The string $testcase does not consist of all hexadecimal digits.\n";
}
} ?>
This example will output :
The string AB10BC99 consists of all hexadecimal digits. The string AR1012 does not consist of all hexadecimal digits. The string ab12bc99 consists of all hexadecimal digits.
ctype_alnum
(PHP 4 >= 4.0.4, PHP 5)
ctype_alnum -- Check for alphanumeric character(s)
˵Ã÷
bool ctype_alnum ( string text )
Checks if all of the characters in the provided string, text, are alphanumeric. In the standard C locale letters are just [A-Za-z] and the function is equivalent to preg_match('/^[a-z0-9]*$/i', $text).
²ÎÊý
text
The tested string.
·µ»ØÖµ
Returns TRUE if


Ïà¹ØÎĵµ£º

ʹPHP¼´Ê±Êä³ö½á¹ûµ½ä¯ÀÀÆ÷

PHP:
<?php
for
(
$i
=
0
;
$i
<
10
;
$i
++
)
{
    echo
$i
;
    sleep
(
1
)
;
}
?>
ÀàËÆÉÏÃæµÄ³ÌÐòÈç¹ûÔÚPHP½âÊÍÆ÷ÖÐÖ´ÐУ¬Ã¿Ãë»áÊä³öÒ»¸öÊý£¬ºÍÏëÏóÖÐÒ»Ñù¡£µ«ÊÇÈç¹ûʹÓÃä¯ÀÀÆ÷À´·ÃÎÊ£¬Çé¿ö¾ÍÓÐËù²»Í¬¡£ÔÚä¯ÀÀÆ÷ÖзÃÎÊʱ£¬Ö»ÓÐÔÚÊ®ÃëÖ®ºó²Å»áÒ»´ÎÐÔµØÏÔʾËù ......

PHPÈ«Äܰࡾ2009Äê11ÔÂ14ÈÕ¿ª¿Î¡¿

 PHPChina¡¾Ö£ÖÝ¡¿ÈÏÖ¤ÖÐÐÄ- -PHPÈ«Äܰࣨ2009Äê11ÔÂ14ÈÕ¿ª¿Î£©
¸Ä±äÖ°ÒµÈËÉú£¬³É¾ÍеÄÊÂÒµ£¬PHP--È«Çò×îÈÈÃÅÍøÕ¾¿ª·¢¼¼Êõ£¡
        ¹úÄÚÅÅÃûǰʮÃûµÄÍøÕ¾ÖÐʹÓÃPHPµÄÓÐ8¼Ò£º°Ù¶È¡¢ÌÚÑ¶Íø¡¢ÐÂÀË¡¢ËѺü¡¢ÍøÒס¢ÌÔ±¦¡¢ÑÅ»¢Öйú¡¢TomÔÚÏß¡£¹úÄÚ½üÁ½ÄêÐÂÍÆ³öµÄweb2.0ÍøÕ¾ÖУ¬ÓÐ80£¥Ê¹Óà ......

PHP¶ÁÈ¡BMP¸ñʽͼƬµÄº¯Êý

PHPÖоÓȻûÓжÁÈ¡BMP¸ñʽͼƬµÄº¯Êý,»¹ºÃ¸ßÈËÒѾ­Ð´ºÃÒ»¸ö,ÎÒû¿´´úÂë,·´ÕýÄÜÕý³£Ê¹ÓÃ.
imagecreatefrombmp -- ´Ó BMP Îļþ»ò URL н¨Ò»Í¼Ïñ
function imagecreatefrombmp($file)
{
global $CurrentBit, $echoMode;
$f=fopen($file,"r");
$Header=fread($f,2);
if($Header=="BM" ......

Project Zero¡¢WebSphere sMash¡¢PHPºÍJAVAµÄÕûºÏ


´Ó¼Ü¹¹Éè¼Æ·½Ã濼ÂÇ£¬ºÜ¶àϵͳ²ÉÓÃÁË Java Bridge°ÑphpºÍJAVA¼¼Êõ½áºÏÆðÀ´£¬ÀûÓÃPHPµÄ¿ìËÙÏìÓ¦ºÍJAVAµÄÊý¾Ý³Ö¾Ã»¯ÄÜÁ¦£¬Äܴܺó³Ì¶ÈÉÏÄÜÌá¸ßϵͳÐÔÄÜ¡£ÕâÁ½ÆªÎÄÕ½«ÏêϸµÄ½éÉÜProject Zero¡¢WebSphere sMash ºÍ PHP µÄÕûºÏ¼¼Êõ
Project Zero¡¢WebSphere sMash ºÍ PHP ÈëÃÅ
http://www.ibm.com/developerworks/cn/web/wa- ......

linuxÏÂapache£¬php,mysqlÕûºÏtomcat

1.Ç°ÃæÒ»ÆªÎÄÕÂÏêϸ½éÉÜÁËÈçºÎÔÚWindowsÏÂÕûºÏapache+mysql+php+tomcat,ºÜ¼òµ¥£¬µ«ÊÇÔÚLinuxϾÍûÕâôÈÝÒ×ÁË£¬ÐèÒªÊÖ¹¤µÄȥдÅäÖÃÎļþ£¬ÍøÉϵÄ×ÊÁÏÓкܶ࣬µ«ÊÇÎÒ¸ù¾ÝËûÃǵÄд·¨£¬Ò»²½Ò»²½µÄÅäÖû¹ÊÇûÄÜsuccess!£¨¿ÉÄÜÊÇÎÒ¸öÈ˵ÄÔ­Òò£¬²»¹ý£¬ÎÞÂÛÔÚGoogle»¹ÊÇbaiduËѵ½µÄÎÄÕ¾ÍÄÇô¼¸Æª£¬Õâ¸öתһÏ£¬ÄǸöתһÏ£¬×îºó¶¼² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ