Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() -curious failures ...

2010-10-09 Thread YAD(YetAnotherDavid)
Thanks for the response - I found the answer to Q1 - the problem of formatting newlines - I was running the code outputting to browser - and got lazy on some - just pasting the PHP manual examples code directly, without bracketing with HTML tags such as ... etc. Of course that won't produce th

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() -curious failures ...

2010-09-27 Thread Peter Lind
On 24 September 2010 12:49, YAD(YetAnotherDavid) wrote: > Peter Lind wrote: >> >> On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote: >>> >>> This code is 95% cut and paste from the PHP manual examples - >>> the Types/Strings/Heredocs section and the Filesystem/fnmatch pages. >>> There are ac

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() -curious failures ...

2010-09-27 Thread YAD(YetAnotherDavid)
Peter Lind wrote: On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote: This code is 95% cut and paste from the PHP manual examples - the Types/Strings/Heredocs section and the Filesystem/fnmatch pages. There are actually two questions here - I have combined the code into one ... Question

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() - curious failures ...

2010-09-24 Thread Steve Staples
As far as I know, you wont get any line breaks. I would suggest putting the results into tags to preserve formatting. whenever I do a print_r(), i also encapsulate it within a tag so it is readable. on another note, when I use variables within double quotes "" (or even the heredoc (but i use s

Re: [PHP] Heredocs, print_r() and newline "\n" and fnmatch() - curious failures ...

2010-09-24 Thread Peter Lind
On 23 September 2010 21:47, YAD(YetAnotherDavid) wrote: > This code is 95% cut and paste from the PHP manual examples - > the Types/Strings/Heredocs section and the Filesystem/fnmatch pages. > There are actually two questions here - I have combined the code into one > test file ... the strings in