Home »
Imported messages »
comp.lang.php »
extract variable from an array
extract variable from an array [message #171389] |
Fri, 31 December 2010 15:37 |
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
|
|
|
Goto Forum:
Current Time: Sat Nov 23 09:26:10 GMT 2024
Total time taken to generate the page: 0.06157 seconds