I have this array:
Array ( [count] => 12  => CN=G_Information_Services,CN=Users,DC=hccc,DC=campus  => CN=WEBadmin,CN=Users,DC=hccc,DC=campus  => CN=G_ISDept,CN=Users,DC=hccc,DC=campus  => CN=STAFF,CN=Users,DC=hccc,DC=campus )
and I want to create an array of values that consist of the value between the first CN= and , of each array value below.
I probably will have to loop thru the array above, do a regex search for the first occurrence of cn and the value that follows it
I am not sure what I am doing wrong.
I need the final result to be an array that resembles this:
array('G_Information_Services', 'WEBadmin', 'G_ISDept', 'STAFF');