KeziaKristina
Programmer
How can I get a part of string which contain newline (\n)?
Ex:
$string = "<HTML> \n <BODY> \n <?php print "Something 2 print";\n print $a; \n ?> </BODY> \n </HTML>\n";
I want to get string between <?php .... ?>. And how can i get them?
I have try it with many way, including with regular expression, but it doesn't work. Does regular expression support multiline?
Ex:
$string = "<HTML> \n <BODY> \n <?php print "Something 2 print";\n print $a; \n ?> </BODY> \n </HTML>\n";
I want to get string between <?php .... ?>. And how can i get them?
I have try it with many way, including with regular expression, but it doesn't work. Does regular expression support multiline?