Re: $this objects and vars
| From: | mike cullerton | Date: | Fri, 18 Jan 2002 16:12:14 +0000 |
| Subject: | Re: $this objects and vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81103@lists.php.net to get a copy of this message | ||
on 1/18/02 8:58 AM, TD - Sales International Holland B.V. at td@salesint.com
wrote:
> now further in the script you'll get an sql query
> $this = mysql_fetch_array(indentifier);
>
> now as far as I knew you shouldn't be possible to use $this for this purpose,
> it has nothing to do with objects... why can it be used? it's only confusing
> things. The script works tho...
this is only a guess, but maybe separate namespaces. one is an array and one
is an object.
the object $this should only exist inside a method definition, right? $this
outside of that context isn't referring to itself at that point but some
memory space allocated to the variable named 'this' instead, i guess.
?
mike
-- mike cullerton michaelc at cullerton dot com