Home Tutorial Php List PHP list cookies

 
 

Share on Google+Share on Google+
PHP list cookies
Posted on: November 2, 2009 at 12:00 AM
Advertisement
In this tutorial we will see how to use and lists the cookie.We will create an example which displays all the cookies value at a time

  • PHP List Cookie are the internet data present on the client machine
  • These Cookies can be enlisted by the $_COOKIE super global variable.
  • $_COOKIE returns the all cookie values in the Array form.


Example of PHP List Cookies

<?php
setcookie("amt",10000);
setcookie("rate",2);
setcookie("time",5);
$cookie
=$_COOKIE;

foreach
($cookie as $key=>$val)
echo
"<br>$key--> $val";
?>


Output of PHP Cookies arraylist
amt--> 10000
rate--> 2
time--> 5 
Advertisement

Related Tags for PHP list cookies:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 2, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com