how to see what is in an array(ALL FIXED THANKS ALL)
Posted 06 October 2006 - 01:52 PM
if you echo the array it displays ARRAY
if I use explode I get nothing as I m not sure what the seperater is
Posted 06 October 2006 - 02:04 PM
That could be useful for editing configuration files consisting of an array.
Posted 06 October 2006 - 02:37 PM
<?php echo '<pre>' . print_r($somearray,true) . '</pre>'; ?>
Posted 06 October 2006 - 03:03 PM
thank you all so much for your help.
now this array seems very comlicated to me as it looks like arrays inside arrays
Array (  => Array ( [1DA] => 27.84 )  => Array ( [1DP] => 24.23 )  => Array ( [2DA] => 14.33 )  => Array ( [3DS] => 10.60 )  => Array ( [GND] => 6.65 ) )
it is the return values for ups quotes. I need to alter it. the text is the shipping type and the numbers is the cost. I need to subtract the value associted with the GND from all the other vales in the array
I tried "for each" but I am lost
Posted 06 October 2006 - 03:50 PM
Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools
Posted 06 October 2006 - 04:05 PM
How are you propogating the array?
what do you mean?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users