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

ѧϰphp Reflection£¨¶þ£©

(4)Ó³ÉäÀà(ReflectionClass)
ReflectionClassÀàÔÊÐíÄã·´ÏòÓ³ÉäÀà¡£
<?
php
interface MySerializable  
{    
// ...}
class My
Object
 
{    
// ...}
/** A counter class */
class 
Counter 
extends
MyObject implements MySerializable 
{   const 
START 

0
;
    
private 
static 
$c 

Counter
::
START
;
    
/**Invoke counter
     * @access  public
     * @return  int */
    
public 
function 
count
() {  return 
self
::
$c
++;  }
}
// Create an instance of the ReflectionClass class
$class 
= new 
ReflectionClass
(
'Counter'
);
// Print out basic information
printf
(
"===> The %s%s%s %s '%s' [extends %s]\n" 
.
    
"     declared in %s\n" 
.
    
"     lines %d to %d\n" 
.
    
"     having the modifiers %d [%s]\n"
,
        
$class
->
isInternal
() ? 
'internal' 

'user-defined'
,
        
$class
->
isAbstract
() ? 
' abstract' 

''
,
        
$class
->
isFinal
() ? 
' final' 

''
,
        
$class
->
isInterface
() ? 
'interface' 

'


Ïà¹ØÎĵµ£º

PHPÖÐforeachÑ­»·±éÀúÊý×é(3)

<?php
 
  //ÉùÃ÷Êý×é±äÁ¿
  $arr = array(val1 =>'ÕÅÈý',val2 => 'ÀîËÄ',val3 => 'ÍõÎå',val4 => 'ÀîÃ÷',val5 => 'ÖÜÑàÄÝ');
 
  //foreachÑ­»·±éÀúÊý×é
  foreach($arr as $key => $value){
   //×¢Òâ“$value”ºó±ØÐëÒªÒ»¸ö¿Õ¸ñ£¬·ñÔòÊä ......

PayPal PHP½Ó¿Ú paypalÔÚÏßÖ§¸¶


ÔÙ´Î֮ǰÏÈ˵һ¸öÍøÖ·£ºhttps://www.paypaltech.com/SG2/
            Õâ¸öÊÇÉú³Épaypal IPNµÄÍøÖ·£¬ÕâÑù˵°É£¬ÊÇÌæÄãÉú³É´úÂëµÄÍøÖ·(·Ç³£µÄºÃ)£¡²»¶®Ã»¹ØÏµ£¡ÏÈÖªµÀһϣ¡ 
ÏÂÔØ½Ì³ÌÍøÖ·£ºhttp://download.csdn.net/source/2225766
http://download.cs ......

£Ûת£ÝPHP»ñÈ¡IPµØÖ·

£Ûת×Ô£Ýhttp://hi.baidu.com/xiamishule/blog/item/dea92c09ef9acc9e0b7b8236.html
Ô´´úÂ룺
PHP»ñÈ¡IPµÄ·½·¨ÓÐÐí¶àÖÖ£¬<br />½ñÌìÏò´ó¼Ò×ܽáÁËÁùÖÖ·½·¨¡£
<br />PHP»ñÈ¡IP·½·¨Ò»£º
<?php    
function GetIP() {
    if(!empty($_SERVER["HTTP_CLIENT_ ......

¹ØÓÚPHPºÍphpMyAdminµÄÄÇЩÊÂ


°²×°
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/';//phpMyAdminµÄ°²×°Â·¾¶
$cfg['blowfish_secret'] = '123456';//¼ÓÃÜÃܳף¬¿ÉËæÒâ¸ü¸Ä¡£
$cfg['Servers'][$i]['user'] = 'root'; // MySQLÓû§£¬Èç root
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQLÓû§ÃÜÂë
$cfg['DefaultLang'] = '';¡¡¸ÄÎ ......

ѧϰphp Reflection£¨Ò»£©

¿´yii¿ò¼ÜÔ´ÂëµÄʱºò£¬·¢ÏÖÁË
ReflectionClassÕâ¸ö·½·¨£¬²Å·¢ÏÖÔ­À´ÊÇphp5µÄж«Î÷£¬ÓÚÊÇÉÔ΢Ñо¿ÁËÏ¡£phpµÄ·´ÉäapiÒ»¹²ÓУº
class 
Reflection 
{ }
interface Reflector 
{ }
class 
ReflectionException 
extends 
Exception 
{ }
class 
Re ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ