I have a text file, I am parsing it using a regex and saving in the table, is shows me Notice: Array to string conversion in /opt/lampp/htdocs/parsermine/index.php on
the regex is
preg_match_all('/([0-9]{1,3}.){3}[0-9]{1,3}/', $line, $matches); var_dump($matches[0]);
and dump is
array(1) { [0]=> string(11) "192.168.1.2" }
array(1) { [0]=> string(11) "192.168.1.2" }
array(1) { [0]=> string(11) "192.168.1.2" }
array(1) { [0]=> string(11) "192.168.1.2" }
help me to sort out the problem
index.phpdoes the error message point to? What is on that line? What is$line? Is it a string or an array?