[pmwiki-devel] (no subject)
commentgg at hotmail.com
Mon Apr 2 11:07:07 CDT 2007
Caveman, I don't see the problem. The following works on my system, printing 'XXXXXXXXXX'$source = "[[#IDtest]]Next Line";$a = "[[#IDtest]]";$source = substr($source, strlen($a));if($source == "Next Line") print"XXXXXXXXXXX";You're looking at it in a browser (which treats the newline as a space)? /jmOn 4/2/07, The Editor <editor at fast.st> wrote: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 phpseems to disregard the linebreak. If I add -1 to the substr, it takesoff the closing link bracked. So the number is right. Anysuggestions?Just a minor thing, but kind of irritating me...Cheers,Dan_______________________________________________pmwiki-devel mailing listpmwiki-devel at pmichaud.comhttp://www.pmichaud.com/mailman/listinfo/pmwiki-devel
It’s tax season, make sure to follow these few simple tips
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-devel