fanta1066 Posted February 1 Share Posted February 1 I have already posted something similar. However what I did not post was the entire problem, which I have described below. This is far more complicated then my prior post. As explained, I am not a developer. I am a network engineer. I have the following output (below), all that data has been sent to arrays. Each set of output has approximately 1000 entries, some have slightly more. I need some php code which will iterate through each array and (where the BOLD numbers match in all of the arrays, to pull out the data after the Value= Array name = alpha1 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.52, Type=OctetString, Value= 84 B1 E4 6E 93 4F OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.53, Type=OctetString, Value= 1C 6A 76 41 09 B9 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.65, Type=OctetString, Value= 1C 6A 76 45 D6 5D OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2.10.36.240.67, Type=OctetString, Value= CE B9 5E 32 17 61 Array name = alpha2 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.52, Type=OctetString, Value=svc_rover@gstt.local OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.53, Type=OctetString, Value=svc_rover@gstt.local OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.65, Type=OctetString, Value=svc_rover@gstt.local OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.3.10.36.240.67, Type=OctetString, Value=svc_rover@gstt.local Array name = alpha3 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.52, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.53, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.65, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.4.10.36.240.67, Type=OctetString, Value=ROLE-GSTT-PLOCAL-WIFI Array name = alpha4 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.52, Type=TimeTicks, Value=4 days, 0:35:49.00 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.53, Type=TimeTicks, Value=3 days, 7:32:33.00 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.65, Type=TimeTicks, Value=8:20:48.00 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.5.10.36.240.67, Type=TimeTicks, Value=3 days, 7:26:52.00 Array name = alpha5 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.52, Type=Integer, Value=4 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.53, Type=Integer, Value=4 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.65, Type=Integer, Value=4 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.6.10.36.240.67, Type=Integer, Value=4 Array name = alpha6 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.52, Type=OctetString, Value=HH.Porters.2022 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.53, Type=OctetString, Value=F.11.P.G OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.65, Type=OctetString, Value=F.2.P.G OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.7.10.36.240.67, Type=OctetString, Value=HH.MAPLE.WARD.DOSA.BEDS Array name = alpha7 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.52, Type=Integer, Value=3240 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.53, Type=Integer, Value=3240 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.65, Type=Integer, Value=3240 OID=.1.3.6.1.4.1.14823.2.2.1.1.2.1.1.9.10.36.240.67, Type=Integer, Value=3240 Thank you for all your help. Quote Link to comment https://forums.phpfreaks.com/topic/317673-almost-there-but-need-help-from-a-expert/ Share on other sites More sharing options...
Barand Posted February 1 Share Posted February 1 That is almost exactly the same problem as before. Create a $values array (as in method 2 in previous solution) for each of the $alpha arrays and compare them. Quote Link to comment https://forums.phpfreaks.com/topic/317673-almost-there-but-need-help-from-a-expert/#findComment-1614586 Share on other sites More sharing options...
fanta1066 Posted February 2 Author Share Posted February 2 I have no idea what that means, can you please kindly give me an example. Quote Link to comment https://forums.phpfreaks.com/topic/317673-almost-there-but-need-help-from-a-expert/#findComment-1614630 Share on other sites More sharing options...
Barand Posted February 2 Share Posted February 2 There are examples here Quote Link to comment https://forums.phpfreaks.com/topic/317673-almost-there-but-need-help-from-a-expert/#findComment-1614632 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.