in reply to working backwards in an array element?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: working backwards in an array element?
by CA_API (Initiate) on Aug 28, 2010 at 00:39 UTC |