I'm twiting

访问统计

free counters

PHP 获取当前类名、方法名

  • __CLASS__ 获取当前类名(在此之前我用get_class - -!)
  • __FUNCTION__ 当前函数名(confirm)
  • __METHOD__ 当前方法名 (bankcard::confirm)

非常好用!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>