我期待从分隔符中提取php中的内容。例如:如何从分隔符中提取内容在PHP
content useless
<--------->
Content to get
content to get
content to get
<--------->
content useles
content useless
<--------->
Content to get
content to get
content to get
<--------->
content useless
<--------->
Content to get
content to get
content to get
<--------->
现在我只有这个:
<?php
$myfile = file_get_contents("foo.txt");
$rows = explode("\n", $myfile);
foreach($row as $line => $data) {
if ($data == "<--------->") {
}
}
?>
我真的不知道如何找到我的分隔符的第二位置,并检索内容。
我希望我明白了! 问候和感谢。
Beggining /结束? –
例如是或其他 –
将始终在<--------->之间?和多少可能的块? –