[pmwiki-devel] substr \n puzzle
The Editor
editor at fast.st
Mon Apr 2 05:04:29 CDT 2007
I have another bug I can't seem to get my head around.
Given
$source = "[[#IDtest]]
Next Line";
$a = "[[#IDtest]]";
I would expect
$source = substr($source, strlen($a));
to return Next Line with a line return at the beginning. But php
seems to disregard the linebreak. If I add -1 to the substr, it takes
off the closing link bracked. So the number is right. Any
suggestions?
Just a minor thing, but kind of irritating me...
Cheers,
Dan
More information about the pmwiki-devel
mailing list