I have file like this
#####
....
....
.....
###one
...
...
...
###two
....
....
#####
I want read from ###one
until ###two
I don't want to read line by line
I have file like this
#####
....
....
.....
###one
...
...
...
###two
....
....
#####
I want read from ###one
until ###two
I don't want to read line by line
Just tested, this works perfectly:
preg_match('/###one(.*?)###two/s', $fileContents, $output);
echo $output[1];