I'm a bit stumped on this one and going over manual is only quickening my decent into confusion.. 😉
I'm working with some an array ($tArray) that looks sort of like this:
Array
{
[0] => Array
{
[ID] => 104502
[Project] => Alpha
}
[1] => Array
{
[ID] => 104503
[Project] => Alpha
}
[2] => Array
{
[ID] => 103112
[Project] => Corporate
}
[3] => Array
{
[ID] => 103113
[Project] => Support
}
[4] => Array
{
[ID] => 105225
[Project] => Support
}
}
What I'm wanting to do is get a total of this array by [Project] so I would end up with something that would display "2 Alpha" , "1 Corporate" , "2 Support". The only caveat is that the sub-arrays in $tArray can have as few as 2 elements, and up to as many as 28.
Any insight or suggestions would be appreciated. 🙂