Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: RE: Looping TWO dimension array


Message #1 by "jorge" <jorge@d...> on Fri, 1 Nov 2002 07:15:22 -0600
Thanks Justin it works and looks very neat
Jorge :)
----- Original Message ----- 
From: "Vincent, Justin" <J.Vincent@e...>
To: "professional php" <pro_php@p...>
Sent: Thursday, October 31, 2002 3:48 AM
Subject: [pro_php] RE: Looping TWO dimension array


> > Again, I strongly recommend using print_r() to dump the 
> > contents of the $_POST
> > array for you to double check the structure of the array. 
> 
> Yes I agree with nik on this one. What I find very useful 
> and use 'all the time' is a little function like so..
> 
> // =================================================
> 
> function vardump($variable)
> {
> echo "<pre>";
> print_r($variable);
> echo"</pre>";
> }
> 
> vardump($_POST);
> 
> // =================================================
> 
> This means that not only can you see the structure 
> very easily but it is formatted very nicely in your 
> web browser - makes it _much_ easier to see what is 
> going on.
> 
> Cheers,
> Justin.
> 



  Return to Index