Hello,
I have confusing string question. I have a string like this (example):
[PHP]
<?php $a = "
{FILE: hello}
hello contents
{FILE: hello2}
hello2 contents
"; ?>
[/PHP]
What im trying to do is when the code reads {FILE: *} <- it makes that file. Than it puts all the contents in the file until it finds another {FILE: *} or the end of the string.
I am sort of lost in the right direction to do this. Any sort of help would be great!
Kev
I have confusing string question. I have a string like this (example):
[PHP]
<?php $a = "
{FILE: hello}
hello contents
{FILE: hello2}
hello2 contents
"; ?>
[/PHP]
What im trying to do is when the code reads {FILE: *} <- it makes that file. Than it puts all the contents in the file until it finds another {FILE: *} or the end of the string.
I am sort of lost in the right direction to do this. Any sort of help would be great!
Kev
Comment