ѧϰphp Reflection£¨Ò»£©
¿´yii¿ò¼ÜÔ´ÂëµÄʱºò£¬·¢ÏÖÁË
ReflectionClassÕâ¸ö·½·¨£¬²Å·¢ÏÖÔÀ´ÊÇphp5µÄж«Î÷£¬ÓÚÊÇÉÔ΢Ñо¿ÁËÏ¡£phpµÄ·´ÉäapiÒ»¹²ÓУº
class
Reflection
{ }
interface Reflector
{ }
class
ReflectionException
extends
Exception
{ }
class
ReflectionFunction implements Reflector
{ }
class
ReflectionParameter implements Reflector
{ }
class
ReflectionMethod
extends
ReflectionFunction
{ }
class
ReflectionClass implements Reflector
{ }
class
ReflectionObject
extends
ReflectionClass
{ }
class
ReflectionProperty implements Reflector
{ }
class
ReflectionExtension implements Reflector
{ }
Reflection ÊÇ×î»ù´¡µÄ·´ÉäÀ࣬±ÈÈç
<?php
Reflection::export
(new
ReflectionFunction
('array_walk'
));
Reflection::export
(new
ReflectionClass
('Exception'
));
?>
½«Êä³ö:
Function [ function array_walk ]
{
- Parameters [3]
{
Parameter #0 [ &$input ]
Parameter #1 [ $funcname ]
Parameter #2 [ $userdata ]
}
}
CODE:
Class [ <internal> class Exception ] {
- Constants [0] { }
- Static properties [0] { }
- Static methods [0] { }
- Properties [6] {
Property [ <default> protected $message ]
Property [ <default> private $string ]
Property [ <default> protected $code ]
Property [ <default> protected $fil
Ïà¹ØÎĵµ£º
´ÓHTMLÎļþÖжÁÈ¡Ö¸¶¨×Ö·û´®
ÔÌùµØÖ·£ºhttp://topic.csdn.net/u/20100322/10/d7401c38-10b7-4231-a323-454caf946fa6.html
2.
<a title="1" href="sdfds" m ......
<?php
//ÉùÃ÷Êý×é±äÁ¿
$arr = array(val1 =>'ÕÅÈý',val2 => 'ÀîËÄ',val3 => 'ÍõÎå',val4 => 'ÀîÃ÷',val5 => 'ÖÜÑàÄÝ');
//foreachÑ»·±éÀúÊý×é
foreach($arr as $key => $value){
//×¢Òâ“$value”ºó±ØÐëÒªÒ»¸ö¿Õ¸ñ£¬·ñÔòÊä ......
ÔÎÄÁ´½Ó£ºhttp://www.phpdo.net/index.php/20100410/55.html
ÔÚPHPÖиüÐÂÊý×éµÄÄÚÈÝ¿ÉÒÔÖ±½ÓÖ¸¶¨¼üÃû²¢ÇҶԸüüÃû¸³Öµ¡£ ÀýÈ磺
<?php
$php = array(“php”,”phpdo”,”phpdo.net”);
$php[2] = “www.phpdo.net”;
print_r($php);
&nbs ......
http://www.111cn.net/phper/19/dd73e6624c92e49e7755d3b43719677d.htm
ºÜ¶àÍøÕ¾ÔÚÊ×Ò³ÉÏ×öһЩÁ´½Ó£¬ÈÃÓû§À´Ñ¡Ôñ½«Òª·ÃÎʵĸ÷×ÔµÄÓïÑÔÒ³Ã棬ÈÃÖйúÈËÑ¡Ôñ“ÖÐÎÄ”£¬º«¹úÈËÑ¡Ôñ“³¯ÏÊÓ¬µÈµÈ¡£ÄÇôÄܲ»ÄÜ×ö³ÌÐòÀ´×Ô¶¯°ïÖúÑ¡ÔñÄØ£¿
´ð°¸Êǿ϶¨µÄ£¬´ó¼Ò¶¼ÔÚÓÃgoogle£¬ÄãÓÃÖÐÎÄϵͳ´ò¿ªgoogleµÄÊ×Ò³ ......
Ò»¡¢ÏµÍ³»·¾³¼°³ÌÐò˵Ã÷
1¡¢²Ù×÷ϵͳΪwindows server 2003
2 ¡¢iis°æ±¾Îª6.0
3¡¢php°æ±¾Îª5.2.9,¹Ù·½ÏÂÔصØÖ·: http://www.php.net/downloads.php
4¡¢mysql°æ±¾Îª5.1.34,¹Ù·½ÏÂÔصØÖ·:http://dev.mysql.com/downloads/mysql
¶þ¡¢°²×°iis
1¡¢²åÈëwindows server 2003ϵͳ°²×°¹âÅÌ
2¡¢¿ªÊ¼-¿ØÖÆÃæ°å-Ìí¼Óɾ³ý³ÌÐ ......