I have this 2d array that represent outgoing links of each page returned by search engine, now I have to find number of inbound links of each page.
eg 1 is present in sub array in key2,3,4,5,6 so its number of inbound will be 5.
I need this in PHP.
$links = array(
1 => array(2,3,4,5,6),
2 => array(1,3,4,5,6),
3 => array(1,2,4,5,6),
4 => array(1,2,3,5,6),
5 => array(1,2,3,4,6),
6 => array(1,2,3,4,5),
7=> array (11),
8=>array(7,9),
9=> array(7),
10=> array(8),
11=> array(8,10),
);