Working with arrays

Hello

I have an array $ip_adresses which contains a list op ips

I want to check if the array has some ip starting with 124.128 . How to do that ?

Thank you

The command you are searching for is preg_grep().

preg_grep()