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
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');
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
3 matches
Mail list logo