Re: More on removing item from cart
| From: | Jason Wong | Date: | Thu, 27 Jun 2002 04:43:49 +0000 |
| Subject: | Re: More on removing item from cart | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104099@lists.php.net to get a copy of this message | ||
On Thursday 27 June 2002 10:52, Analysis & Solutions wrote:
> Hey Vicki:
>
> On Wed, Jun 26, 2002 at 11:01:31AM -0400, Vicki wrote:
> > I'm checking the cart structure by printing the following code inserted
> > right after the "if($save);"
> > line (is this the best way to check on the contents of an array?)
> >
> > while (list($key,$value) = each($cart))
> > {
> > print "Cart = $key: $value<BR>";
> > }
> >
> > This returns "article ID number (an integer) : 1" when new
> > and "article ID : yes" after the save button has been clicked.
The easiest way to print out any variable is to use print_r() or var_dump().
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
You will forget that you ever knew me.
*/