i'm new in php, especially php array and i wanna learn more about array, i found this forum sound interesting to solve my problem.
i have some array like this :
Array
(
[0] => Array
(
[0] => Printer_B //printer
[1] => IDDHARMAHE //user
)
[1] => Array
(
[0] => Printer_B
[1] => IDSIRIKINE
)
[2] => Array
(
[0] => Printer_C
[1] => IDSUPRIY1
)
[3] => Array
(
[0] => Printer_A
[1] => IDSUSANTEN
)
[4] => Array
(
[0] => Printer_A
[1] => IDSUSANTEN
)
[5] => Array
(
[0] => Printer_B
[1] => IDSEPTIATR
)
}
and i want to produce array result like this
Array
(
[Printer_A] => 1 //printer A is used by 1 user
[Printer_B] => 3 //printer B is used by 3 user
[Printer_C] => 1 //printer C is used by 1 user
}
what is the simple solution for this ? what php function should i used with this problem ?
because i want to count this array as fast as possible to reduce time.
many thanks before :)