class MyClass {
var $isSQLFieldArray = array();
function MyClass() {}
function getISSQLFieldArray($field) {
if ($field) return $this->isSQLFieldArray[$field];
}
}
If I use this exact class and method in my script, the page that calls it locks up. Even using
error_reporting(E_ALL);
not only produces NOT ONE ERROR/WARNING/ANYTHING, the page STILL locks up cold!! You can't click onto a link or press a form button and go ANYWHERE AT ALL...
However, if I do this:
class MyClass {
var $isSQLFieldArray = array();
function MyClass() {}
function getIsSQLFieldArray($field) {
if ($field && isset($this->isSQLFieldArray[$field])) return $this->isSQLFieldArray[$field];
}
}
Everything works just fine and STILL no errors reported by
error_reporting(E_ALL);
What do you all make of this one? The following URLs provided me no information:
http://us4.php.net/isset
http://us4.php.net/return
Phil