I have a variable that lists multiple IPs, such as this:
$ip_list = "8.8.8.8, 50.66.30.88, 28.24.56.33";
How can I get just the first IP from the list? For example, if I just wanted to echo 8.8.8.8
in the example above.
The number of IPs may vary, but I always just want to get the first one.