snowboardr
Programmer
I have been trying to learn more about Multidimensional Arrays. How do i get lettercount in this array only based off the letter not the index number...
here is my array output:
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]
here is my array output:
Code:
$alpha_count => Array (22)
(
| ['0'] => Array (2)
| (
| | ['letter'] = String(1) "a"
| | ['lettercount'] = String(1) "1"
| )
| ['1'] => Array (2)
| (
| | ['letter'] = String(1) "b"
| | ['lettercount'] = String(1) "3"
| )
| ['2'] => Array (2)
| (
| | ['letter'] = String(1) "c"
| | ['lettercount'] = String(1) "1"
| )
| ['3'] => Array (2)
| (
| | ['letter'] = String(1) "d"
| | ['lettercount'] = String(1) "1"
| )
| ['4'] => Array (2)
| (
| | ['letter'] = String(1) "e"
| | ['lettercount'] = String(1) "2"
| )
| ['5'] => Array (2)
| (
| | ['letter'] = String(1) "f"
| | ['lettercount'] = String(1) "1"
| )
| ['6'] => Array (2)
| (
| | ['letter'] = String(1) "g"
| | ['lettercount'] = String(1) "2"
| )
| ['7'] => Array (2)
| (
| | ['letter'] = String(1) "h"
| | ['lettercount'] = String(1) "7"
| )
| ['8'] => Array (2)
| (
| | ['letter'] = String(1) "i"
| | ['lettercount'] = String(1) "1"
| )
| ['9'] => Array (2)
| (
| | ['letter'] = String(1) "j"
| | ['lettercount'] = String(1) "2"
| )
| ['10'] => Array (2)
| (
| | ['letter'] = String(1) "k"
| | ['lettercount'] = String(1) "1"
| )
| ['11'] => Array (2)
| (
| | ['letter'] = String(1) "l"
| | ['lettercount'] = String(1) "1"
| )
| ['12'] => Array (2)
| (
| | ['letter'] = String(1) "m"
| | ['lettercount'] = String(1) "1"
| )
| ['13'] => Array (2)
| (
| | ['letter'] = String(1) "n"
| | ['lettercount'] = String(1) "1"
| )
| ['14'] => Array (2)
| (
| | ['letter'] = String(1) "o"
| | ['lettercount'] = String(1) "1"
| )
| ['15'] => Array (2)
| (
| | ['letter'] = String(1) "p"
| | ['lettercount'] = String(1) "2"
| )
| ['16'] => Array (2)
| (
| | ['letter'] = String(1) "r"
| | ['lettercount'] = String(1) "2"
| )
| ['17'] => Array (2)
| (
| | ['letter'] = String(1) "s"
| | ['lettercount'] = String(3) "343"
| )
| ['18'] => Array (2)
| (
| | ['letter'] = String(1) "t"
| | ['lettercount'] = String(1) "1"
| )
| ['19'] => Array (2)
| (
| | ['letter'] = String(1) "v"
| | ['lettercount'] = String(1) "2"
| )
| ['20'] => Array (2)
| (
| | ['letter'] = String(1) "w"
| | ['lettercount'] = String(1) "1"
| )
| ['21'] => Array (2)
| (
| | ['letter'] = String(1) "z"
| | ['lettercount'] = String(1) "1"
| )
)
Jason
[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]