PHP5ÐÂÌØÐÔ: ¸ü¼ÓÃæÏò¶ÔÏ󻯵ÄPHP
PHP
´¦Àí¶ÔÏ󲿷ֵÄÄÚºËÍêÈ«ÖØÐ¿ª
·¢¹ý£¬Ìṩ¸ü¶à¹¦ÄܵÄͬʱҲÌá¸ßÁËÐÔÄÜ¡£ÔÚÒÔǰ°æ±¾µÄ
php
ÖУ¬´¦Àí¶ÔÏóºÍ´¦Àí»ù±¾ÀàÐÍ
£¨Êý×Ö£¬×Ö·û´®£©µÄ·½Ê½ÊÇÒ»ÑùµÄ¡£ÕâÖÖ·½Ê½µÄȱÏÝÊÇ£ºµ±½«¶ÔÏó¸³Öµ¸øÒ»¸ö±äÁ¿Ê±£¬»òÕßͨ¹ý²ÎÊý´«µÝ¶ÔÏóʱ£¬¶ÔÏ󽫱»ÍêÈ«¿½±´Ò»·Ý¡£ÔÚеİ汾ÀÉÏÊö²Ù×÷
½«´«µÝÒýÓ㨿ÉÒÔ°ÑÒýÓÃÀí½â³É¶ÔÏóµÄ±êʶ·û£©£¬¶ø·ÇÖµ¡£
ºÜ¶à
PHP
³ÌÐòÔ±¿ÉÄÜÉõÖÁûÓвì¾õµ½ÀϵÄ
¶ÔÏó´¦Àí·½Ê½¡£ÊÂʵÉÏ£¬´ó¶àÊýµÄ
php
Ó¦Óö¼¿ÉÒԺܺõØÔËÐС£»òÕß½ö½öÐèÒªºÜÉٵĸ͝¡£
˽ÓкÍÊܱ£»¤³ÉÔ±
PHP5
ÒýÈëÁË˽ÓкÍÊܱ£»¤³ÉÔ±±äÁ¿µÄ
¸ÅÄî¡£ÎÒÃÇ¿ÉÒÔÓÃËüÀ´¶¨ÒåÀà³ÉÔ±µÄ¿É¼ûÐÔ¡£
Àý×Ó
Êܱ£»¤³ÉÔ±¿ÉÒÔ±»×ÓÀà·ÃÎÊ£¬
¶øË½ÓгÉÔ±Ö»Äܱ»Àà±¾Éí·Ã
ÎÊ¡£
<?php
class
MyClass
{
private $Hello
=
"Hello, World!\n"
;
protected $Bar
=
"Hello, Foo!\n"
;
protected $Foo
=
"Hello, Bar!\n"
;
function
printHello
() {
print
"MyClass::printHello()
"
.
$this
->
Hello
;
print
"MyClass::printHello()
"
.
$this
->
Bar
;
print
"MyClass::printHello()
"
.
$this
->
Foo
;
}
}
class
MyClass2
extends
MyClass
{
protected $Foo
;
function
printHello
() {
MyClass
::
printHello
();
/* Should print */
print
"MyClass2::printHello() "
.
$this
->
Hello
;
/*
Shouldn't print out anything */
print
"MyClass2::printHello() "
.
$this
->
Bar
;
/*
Shouldn't print (not declared)*/
print
"MyClass2::printHello() "
.
$this
->
Foo
;
/*
Should print */
}
}
$obj
= new
MyClass
()
Ïà¹ØÎĵµ£º
1¡¢ÈçºÎʵÏÖ×Ö·û´®·×ª£¿
<?php
function getStr($str){
$len=strlen($str);
for ($i=0;$i<$len/2;$i++){
$temp=$str[$i ......
ºÇºÇ£¬·ÒëÁËÆª¶«Î÷£¬N³¤Ê±¼äûÓÃÓ¢ÓïÁË£¬³öÁ˳ó´ó¼Ò¿ÉÒ»¶¨ÒªÖ¸³öÀ´°¡¡£·Òë×Ô£ºNick Halstead's Blog
A friend recently got some pre-interview questions from YAHOO for a PHP
job. Following up my previous post about programmer questions I
thought I would post them to give people examples of what a ......
PHPÃæÏò¶ÔÏó·ÖÎöÉè¼ÆµÄ61Ìõ¾ü¹æ
Äã²»±ØÑϸñ×ñÊØÕâЩÔÔò£¬Î¥±³ËüÃÇÒ²²»»á±»´¦ÒÔ×Ú½ÌÐÌ·£¡£µ«ÄãÓ¦µ±°ÑÕâЩÔÔò¿´³É¾¯Á壬ÈôÎ¥±³ÁËÆäÖеÄÒ»Ìõ£¬ÄÇô¾¯Áå¾Í»áÏìÆð ¡£ ----- Arthur J.Riel
(1)ËùÓÐÊý¾Ý¶¼Ó¦¸ÃÒþ²ØÔÚËùÔÚµÄÀàµÄÄÚ²¿¡£
(2)ÀàµÄʹÓÃÕß±ØÐëÒÀÀµÀàµÄ¹²Óнӿڣ¬µ«À಻ÄÜÒÀÀµËüµÄʹÓÃÕß¡£
(3)¾¡Á¿¼õÉÙÀàµÄÐÒéÖÐ ......
ÍÆ¼öСÇÉµÄ PHP ¿ò¼Ü
CodeIgniter ÊÇÒ»¸öСÇɵ«¹¦ÄÜÇ¿´óµÄ PHP ¿ò¼Ü£¬×÷Ϊһ¸ö¼òµ¥¶ø“ÓÅÑÅ”µÄ¹¤¾ß°ü£¬Ëü¿ÉÒÔΪ PHP ³ÌÐòÔ±½¨Á¢¹¦ÄÜÍêÉÆµÄ Web Ó¦ÓóÌÐò¡£Èç¹ûÄãÊÇÒ»¸öʹÓù²ÏíÖ÷»ú£¬²¢ÇÒΪ¿Í»§ËùÒªÇóµÄÆÚÏÞ¶ø·³ÄյĿª·¢ÈËÔ±£¬Èç¹ûÄãÒѾÑá¾ëÁËÄÇЩɵ´ó±¿´ÖµÄ¿ò¼Ü.
ÀïÃæ°üº¬ÁËÈÕ³£ËùÐèÒªµÄÀà¿â£¬´úÂ뾫¼ò¡£ºÜÊ ......
Óõ¥ÒýºÅ´úÌæË«ÒýºÅÀ´°üº¬×Ö·û´®£¬ÕâÑù×ö»á¸ü¿ìһЩ¡£ÒòΪPHP»áÔÚË«ÒýºÅ°üΧµÄ×Ö·û´®ÖÐËÑѰ±äÁ¿£¬µ¥ÒýºÅÔò²»»á£¬×¢Ò⣺ֻÓÐechoÄÜÕâô×ö£¬ËüÊÇÒ»ÖÖ¿ÉÒ԰Ѷà¸ö×Ö·û´®µ±×÷²ÎÊýµÄ“º¯Êý”£¨Òë×¢£ºPHPÊÖ²áÖÐ˵echoÊÇÓïÑԽṹ£¬²»ÊÇÕæÕýµÄº¯Êý£¬¹Ê°Ñº¯Êý¼ÓÉÏÁËË«ÒýºÅ£©¡£
1¡¢Èç¹ûÄܽ«ÀàµÄ·½·¨¶¨Òå³Éstatic£¬¾Í¾¡Á¿¶¨Ò ......