I'm not sure that I fully understand the subtleties of the data/
problem but...
array_walk_recursive might be part of a solution.
You could write a callback function to use with it to do whatever you
need.
http://www.php.net/manual/en/function.array-walk-recursive.php
hth,
glenn
On Oct 21, 2010, at 10:26 PM, Peter Sawczynec wrote:
As always I thank everyone in advance for their assistance.
There can be any number of b_array's in array $arr_countable_items.
$arr_countable_items =
array
(
b_array(key1=value1, key2=value2, key3=value3),
b_array(key1=value1, key2=value2, key3=value3)
....
);
What is the proper best way for me to count how many (if any)
b_arrays are in $arr_countable_items.
Further, what is the best way to count how many value1s (if any) are
in $arr_countable_items.
$arr_countable_items_2 =
array
(
b_array( c_array(key1=value1, key2=value2),
c_array(key1=value1, key2=value2) ),
b_array( c_array(key1=value1, key2=value2),
c_array(key1=value1, key2=value2) )
....
);
What is the best way to count how many value1s (if any) are in
$arr_countable_items_2.
Warmest regards,
Peter Sawczynec
Technology Dir.
blūstudio
941.893.0396
p...@blu-studio.com
www.blu-studio.com
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation