Re: Learning bound variables ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Gevin

I believe, u wish to understand about $this->...

Actually this is object oriented way of writing the variable. Here "this" is
a key word and refers to the "this" instance of the object.

In simpler words if 2 different sessions are calling this line, then each
will pass on the value of "reffer" variable it has stored.

In non object syntax it would be written as
header("Location: ". $referrer)
============
regds
amit

"The difference between fiction and reality? Fiction has to make sense."


On Mon, Aug 29, 2011 at 4:33 PM, Gavin Chalkley <gavin.chalkley@xxxxxxxxx>wrote:

> Dian,
>
> I appreciate what it does and understand the redirect.
>
> What I am more refering to is the manner to which it is written
>
> On 29/08/2011 12:02, dian.armstrong@xxxxxxxxx wrote:
>
>> It's redirect script on php. Cmiiw
>>
>> ------Original Message------
>> From: Gavin Chalkley
>> To: php-db@xxxxxxxxxxxxx
>> Subject:  Learning bound variables ??
>> Sent: Aug 29, 2011 5:45 PM
>>
>> Afternoon all.
>>
>> I am learning the base php at the moment and have come across scripting
>> that has the following examples:
>>
>> "|header("Location: ".$this->referrer);"
>>
>> Could someone point me in a direction to learn about this osrt of thing?
>>
>> Or could some explain?
>>
>> Best regards,
>>
>> Gavin||
>> |
>>
>>
>>
>> Powered by Telkomsel BlackBerry®
>>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux