NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hey DevBest.
So I currently have a function that get's the contents of a file and saves it as a variable.
What I'm trying to do, is... let's say the contents of the file was:
I want to split the page into different sections - for different variables.
So I want to be able to have $head = "<!DOCTYPE html><html><head>[Content Inbetween]</head>"; and then $body = "<body>[Content Inbetween]</body></html>";
How would I achieve this?
Cheers.
So I currently have a function that get's the contents of a file and saves it as a variable.
What I'm trying to do, is... let's say the contents of the file was:
Code:
<!DOCTYPE html>
<html>
<head>
[Content Inbetween]
</head>
<body>
[Content Inbetween]
</body>
</html>
I want to split the page into different sections - for different variables.
So I want to be able to have $head = "<!DOCTYPE html><html><head>[Content Inbetween]</head>"; and then $body = "<body>[Content Inbetween]</body></html>";
How would I achieve this?
Cheers.