OahuRE
OahuRE

Reputation: 74

How do I get this cookie into a PHP variable?

I can see it is there, but can't figure out the syntax to get it out? When I issue the following:

print_r( $_COOKIE );

The response looks like this. How do I get it out?

[HonoluluRealEstate] => Array
    (
        ["ListPriceMin"] => 800000
    )

Upvotes: 0

Views: 38

Answers (1)

Hanky Panky
Hanky Panky

Reputation: 46900

echo $_COOKIE["HonoluluRealEstate"]["ListPriceMin"];

Feel tired after making so much effort :) And I can bet 5 cents that that is not the actual output of print_r or else those quotation marks wouldn't be there.

Upvotes: 2

Related Questions