I have this array in which discipline names are same for some of them, I want to get the sum of the crypt_count of same discipline names.
Array
(
[0] => Array
(
[discipline_name] => Fortitude
[library_count] => 0
[crypt_count] => 3
)
[1] => Array
(
[discipline_name] => Fortitude
[library_count] => 0
[crypt_count] => 1
)
[2] => Array
(
[discipline_name] => Obtenebration
[library_count] => 0
[crypt_count] => 3
)
[3] => Array
(
[discipline_name] => Obtenebration
[library_count] => 0
[crypt_count] => 2
)
[4] => Array
(
[discipline_name] => Dementation
[library_count] => 1
[crypt_count] => 0
)
[5] => Array
(
[discipline_name] => Obfuscate
[library_count] => 0
[crypt_count] => 2
)
[6] => Array
(
[discipline_name] => Fortitude
[library_count] => 0
[crypt_count] => 3
)
[7] => Array
(
[discipline_name] => Necromancy
[library_count] => 0
[crypt_count] => 1
)
[8] => Array
(
[discipline_name] => Necromancy
[library_count] => 0
[crypt_count] => 1
)
[9] => Array
(
[discipline_name] => Celerity
[library_count] => 0
[crypt_count] => 1
)
[10] => Array
(
[discipline_name] => Redemption
[library_count] => 1
[crypt_count] => 0
)
[11] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[12] => Array
(
[discipline_name] => Dominate
[library_count] => 6
[crypt_count] => 0
)
[13] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[14] => Array
(
[discipline_name] => Obtenebration
[library_count] => 4
[crypt_count] => 0
)
[15] => Array
(
[discipline_name] => Necromancy
[library_count] => 4
[crypt_count] => 0
)
[16] => Array
(
[discipline_name] => Necromancy
[library_count] => 2
[crypt_count] => 0
)
[17] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[18] => Array
(
[discipline_name] => Necromancy
[library_count] => 1
[crypt_count] => 0
)
[19] => Array
(
[discipline_name] => Dominate
[library_count] => 3
[crypt_count] => 0
)
[20] => Array
(
[discipline_name] => Obtenebration
[library_count] => 2
[crypt_count] => 0
)
[21] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[22] => Array
(
[discipline_name] => Auspex
[library_count] => 1
[crypt_count] => 0
)
[23] => Array
(
[discipline_name] => Dominate
[library_count] => 4
[crypt_count] => 0
)
[24] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[25] => Array
(
[discipline_name] => Potence
[library_count] => 1
[crypt_count] => 0
)
[26] => Array
(
[discipline_name] => Dominate
[library_count] => 1
[crypt_count] => 0
)
[27] => Array
(
[discipline_name] => Necromancy
[library_count] => 2
[crypt_count] => 0
)
[28] => Array
(
[discipline_name] => Dominate
[library_count] => 0
[crypt_count] => 1
)
[29] => Array
(
[discipline_name] => Dominate
[library_count] => 0
[crypt_count] => 1
)
[30] => Array
(
[discipline_name] => Obtenebration
[library_count] => 0
[crypt_count] => 4
)
[31] => Array
(
[discipline_name] => Obtenebration
[library_count] => 0
[crypt_count] => 2
)
[32] => Array
(
[discipline_name] => Potence
[library_count] => 0
[crypt_count] => 1
)
[33] => Array
(
[discipline_name] => Potence
[library_count] => 0
[crypt_count] => 1
)
)