The offset [-1] gives you the last element of an array, so $res[0][-1] would give you the line with the IP address in it. After that you could just split the line and grab the last word, which would give you the IP address you want.
In reply to Re: working backwards in an array element?
by talexb
in thread working backwards in an array element?
by CA_API
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |