I am new to php. I have a text file which contains text something like this
<??blah blahh blah
blah blah blah
.......
??>
<??blah blahh blah
blah blah blah
.......
??>
<??blah blahh blah
blah blah blah
...... .
??>
It means My main data is in between <?? and ??> I want to make an array which will contains all main data in array (removing these <?? & ??> charachter). So that I can insert the data items in MySql table. I don’t know how to make an array from file lile this.
Thanks for help!!!
You should be able to do this with explode and a little bit of creativity, like so:
Now, your array looks something like: