如何创建PHP单例类来处理请求变量?

was thinking about creating a Single class called 'Request' to handle and clean POST and GET variables but being new to the singleton pattern I'm not sure how to implement it. Ideally I'd like to have 2 functions post($name,$clean) and get($name,$clean) - $clean being a boolean to determine whether to trim/ escape the value

查看全部
douping3427
douping3427
2010/08/13 12:49
  • singleton
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复