My arrays look like this:
array(3) {
["net"]=>
array(3) {
[0]=>
string(4) "NET1"
[1]=>
string(4) "NET2"
[2]=>
string(4) "NET3"
}
["ip"]=>
array(3) {
[0]=>
string(10) "IP1"
[1]=>
string(10) "IP2"
[2]=>
string(10) "IP3"
}
["submit"]=>
string(4) "Save"
}
I want to save contents of arrays into text file. So that contents of text file look like this =>NET1=IP1. I'm using foreach to get contents. Something like this:
foreach($_POST['ip'] as $contents)
But It only saves last contents of array when I try to save contents into text file. So How can I save all contents into my text file?