Hi, I have variables called Cookie1 to Cookie35. I would like to print the values of Cookie1 to Cookie35 using for loop.
Could anybody correct the below code to print the variables. ============================== for($i=1;$i<34;$i++) { $x="Cookie".$i; if(isset($$x)) { echo "<p>$x:$$x</p>"; } } ============================== Thanks in advance Balaji Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php