PHP¿ª·¢ÍøÕ¾´úÂë±àд¹æ·¶
Ò»¡¢ ±äÁ¿ÃüÃû
a) ËùÓÐ×Öĸ¶¼Ê¹ÓÃСд
b) Ê××Öĸ¸ù¾Ý±äÁ¿ÖµÀàÐÍÖ¸¶¨
i. ÕûÊýi
ii. ¸¡µãÊýf
iii. ×Ö·û´®s
iv. ²¼¶ûÖµb
v. Êý×éa
vi. ¶ÔÏóo
vii. ×ÊÔ´r
viii. »ìºÏÀàÐÍm
c) ʹÓÃ’_’×÷Ϊÿһ¸ö´ÊµÄ·Ö½ç
ÀýÈ磺
$i_age_max = 10;
$f_price = 22.5;
$s_name =‘harry’;
$b_flag = true;
$a_price = array();
$o_object = new class();
$r_file = fopen();
$m_var = array_combine($a_name, $a_flag);
¶þ¡¢ ÀàÃüÃû
a) ʹÓôóд×Öĸ×÷Ϊ´ÊµÄ·Ö¸ô£¬ÆäËûµÄ×Öĸ¾ùʹÓÃСд£¬¼´ÍÕ·å¸ñʽ¡£
b) Ãû×ÖµÄÊ××ÖĸʹÓôóд
c) ²»ÒªÊ¹ÓÃÏ»®Ïß(’_')
d) interface½Ó¿Ú×îºÃʹÓôóд×ÖĸI,²¢ÒÔInterface½áβ
ÀýÈ磺
class NameOneTwo
class Name
interface IExampleInterface ()
Èý¡¢ ·½·¨ÃüÃû
a) ʹÓôóд×Öĸ×÷Ϊ´ÊµÄ·Ö¸ô£¬ÆäËûµÄ×Öĸ¾ùʹÓÃСд
b) Ãû×ÖµÄÊ××ÖĸʹÓôóд,ÉùÃ÷Ϊ “private” »ò “protected” µÄ£¬Ê¹ÓÃ’_’Ϊǰ׺
c) ²»ÒªÊ¹ÓÃÏ»®Ïß(’_')
d) (ÓëÀàÃüÃûÒ»ÖµĹæÔò)
e) ¶ÔÏóµÄ·ÃÎÊÆ÷×ÜÊÇÒÔ “get” »ò “set” Ϊǰ׺£¬µ±Ê¹ÓÃÉè¼ÆģʽÈç µ¥Ì¬Ä£Ê½£¨singleton£©»ò¹¤³§Ä£Ê½£¨factory£©£¬·½·¨µÄÃû×ÖÓ¦µ±°üº¬Ä£Ê½µÄÃû×Ö£¬ÕâÑùÈÝÒ×´ÓÃû×Öʶ±ðÉè¼Æģʽ¡£
ÀýÈ磺
class NameOneTwo{
public function DoIt() {};
protect function _HandleError() {};
private function _SayHello() {};
}
ËÄ¡¢ ÀàÊôÐÔÃüÃû
a) ÊôÐÔÃûǰ׺ӦÒÔÊôÐÔÖµÀàÐÍÖ¸¶¨£¨¾ßÌå²ÎÕÕ±äÁ¿ÃüÃû¹æÔò£©
b) ǰ׺ºó²ÉÓÃÓëÀàÃüÃûÒ»ÖµĹæÔò
c) ˽ÓÐÊôÐÔ²ÉÓÃ’_’Ϊǰ׺
ÀýÈ磺
class NameOneTwo {
public function VarAbc() {};
public function ErrorNumber() {};
public $iAge;
private $_iAge;
}
Îå¡¢ ·½·¨ÖвÎÊýÃüÃû
a) ²ÎÕÕÀàÊôÐÔÃüÃû
ÀýÈ磺
class NameOneTwo {
public function VarAbc($sMsg) {};
}
Áù¡¢ È«¾Ö±äÁ¿
a) È«¾Ö±äÁ¿Ó¦¸Ã´øǰ׺‘g’
b) ÆäÓà²ÎÕÕ±äÁ¿ÃüÃû¹æÔò
ÀýÈ磺
global $gi_Age;
global $ga_Price
Æß¡¢ ¶¨ÒåÃüÃû/È«¾Ö³£Á¿
a) È«¾Ö³£Á¿Ê¹ÓÃ’_’·Ö¸îÿ¸öµ¥´Ê
b) ËùÓÐ×ÖĸʹÓôóд
ÀýÈ磺
define(‘E_ERROR_MISSING_PARA’, 501);
°Ë¡¢ º¯Êý
a) ËùÓеÄ×Öĸ²ÉÓÃСд£¬Ê¹ÓÃ’_’·Ö¸îÿ¸öµ¥´Ê
ÀýÈ磺
function some_bloody_function(){
}
¾Å¡¢ ´óÀ¨ºÅ{}¹æÔò
a) ½
Ïà¹ØÎĵµ£º
ÔÚʵ¼Ê¿ª·¢¹ý³Ì»á¾³£»áÓöµ½Ò»Ð©Öظ´µÄ²Ù×÷£¬Èç¹ûÿ´Î¶¼Òª×Ô¼ºÈ¥ÊµÏÖÕâÎÞÒɼÓÖØÁË×Ô¼ºµÄ¹¤×÷Á¿£¬ÏÂÃæ¶ÔһЩ¿ÉÄܾ³£Óõ½µÄÀà×ö¸öÕûÀí£º
ͼ±í¿â
ÏÂÃæµÄÀà¿â¿ÉÒÔÈÃÄãºÜ¼òµ¥¾ÍÄÜ´´½¨¸´ÔÓµÄͼ±íºÍͼƬ¡£µ±È»£¬ËüÃÇÐèÒªGD¿âµÄÖ§³Ö¡£
pChart - Ò»¸ö¿ÉÒÔ´´½¨Í³¼ÆͼµÄ¿â¡£
Libchart - ÕâÒ²ÊÇÒ»¸ö¼òµ¥µÄͳ¼Æͼ¿â¡£
JpGraph - Ò» ......
Ïëµ½PHP²Ù×÷Êý×éʱºò£¬¸øÒ»¸öÊý×éÌí¼ÓÒ»¸öÊý×鵥Ԫʱºò¿ÉÒÔÓÐÁ½ÖÖ·½Ê½£º
1.
$arr = array();
$arr[] = '';
2.
$arr = array();
array_push($arr,'');
¸Õ×öÒ»¸ö100000´ÎµÄÑ»·²åÈ룬½á¹û»¹ÊǵÚÒ»ÖÖÒª¿ìһЩ£¡£¨Ñ»·²åÈëÊý×Ö£¬100000´Î£¬µÚÒ»ÖÖ0.04×óÓÒ£¬µÚ¶þÖÖ0.08Ãë×óÓÒ£© ......
php¹Ù·½ÍøÕ¾Ôõô¾ÍûÓиöÏêϸµÄÔÚwindowsÉϲ¿ÊðµÄÎĵµÄØ
ÎÒÔÚwindows2003Éϲ¿Êðphp£¬ÀÏÊdzöÏÖ404´íÎó
²éÁËgoogle£¬°´ÕÕÉÏÃæ˵µÄÔö¼ÓÁËwebÀ©Õ¹Ò²²»ÐÐ
¿ªÁËĿ¼ä¯ÀÀ£¬¸ùĿ¼ÏÂÃæ¾ÓȻûÓÐindex.phpºÍÆäËûµÄphpÎļþ
ÎÒÈËÆ·¿´À´²»ÐÐÁË ......
AddSlashes: ×Ö·û´®¼ÓÈëбÏß¡£
bin2hex: ¶þ½øλת³ÉÊ®Áù½øλ¡£
Chop: È¥³ýÁ¬Ðø¿Õ°×¡£
Chr: ·µ»ØÐòÊýÖµµÄ×Ö·û¡£
chunk_split: ½«×Ö·û´®·Ö³ÉС¶Î¡£
convert_cyr_string: ת»»¹Å˹À·ò×Ö·û´®³ÉÆäËü×Ö·û´®¡£
crypt: ½«×Ö·û´®Óà DES ±àÂë¼ÓÃÜ¡£
echo: Êä³ö×Ö·û´®¡£
explode: Çпª×Ö·û´®¡£
flush: Çå³öÊä³ö»º³åÇø¡£
get ......