hello!
i've been trying to create a string that starts "href" but delimited by a new line:
eg:
$link = strstr($fine, 'href')
$string = substr($link, 0, strpos($link,$new_line));
i have tried defining $new_line as:
$new_line = '\n';
$new_line = "\n";
$new_line = file_get_contents("new_line.txt");
where "new_line.txt" has a single new line.
nothing seems to work
am i doing something wrong ???
thanks in advance.
i've been trying to create a string that starts "href" but delimited by a new line:
eg:
$link = strstr($fine, 'href')
$string = substr($link, 0, strpos($link,$new_line));
i have tried defining $new_line as:
$new_line = '\n';
$new_line = "\n";
$new_line = file_get_contents("new_line.txt");
where "new_line.txt" has a single new line.
nothing seems to work
am i doing something wrong ???
thanks in advance.