FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » extract variable from an array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
extract variable from an array [message #171389] Fri, 31 December 2010 15:37
padew is currently offline  padew
Messages: 1
Registered: December 2010
Karma:
Junior Member
certainly is an array of arrays;
is a table with an external array that contains rows where each row is
an array that contains columns

This code hide the value that is on the first row with a field
namefield_x (the only name of the field that I know)
unset ($ v-> r [0] -> namefield_x);

this code removes all the values of the field namefield_x
foreach ($ v-> r & as $ r) {unset ($ r-> namefield_x);}


by analyze the codes above is possible understand how the array are made
for to extract the names of all the fields (columns)?

Think is something similar at this
foreach ($ v-> r as $ k => $ r)
{foreach ($ k-> r as $ pp)
{echo "<br>. "$ pp"}
}

thanks and good year
[Message index]
 
Read Message
Previous Topic: Calculate the distance between 2 points
Next Topic: mathematic structures
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 02:09:44 GMT 2024

Total time taken to generate the page: 0.04150 seconds