Re: [PHP] Re: Object-oriented $_REQUEST?

2007-04-30 Thread Philip Thompson
On Apr 28, 2007, at 5:13 PM, Robert Cummings wrote: On Sat, 2007-04-28 at 23:41 +0200, keviN wrote: ?php class get I'm sorry but your code indicates an extreme lack of experience using PHP in the real world. Your class should be named such that it will never collide with someone else's

[PHP] Re: Object-oriented $_REQUEST?

2007-04-28 Thread keviN
?php class get { private $array; function __construct($array) { $this-array = $array; } public function get($key) { if (isset($this-array[$key])) return $this-array[$key]; return null; } } class request { private $types = array('COOKIE', 'REQUEST', 'GET', 'POST', 'SESSION');

Re: [PHP] Re: Object-oriented $_REQUEST?

2007-04-28 Thread Robert Cummings
On Sat, 2007-04-28 at 23:41 +0200, keviN wrote: ?php class get I'm sorry but your code indicates an extreme lack of experience using PHP in the real world. Your class should be named such that it will never collide with someone else's class name in the event you might need to use third party