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 pre ... etc. Of course that won't

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) ani...@mail.com 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

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) ani...@mail.com wrote: Peter Lind wrote: On 23 September 2010 21:47, YAD(YetAnotherDavid) ani...@mail.com wrote: This code is 95% cut and paste from the PHP manual examples - the Types/Strings/Heredocs section and the Filesystem/fnmatch pages.

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

2010-09-24 Thread YAD(YetAnotherDavid)
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 the code contain the questions .. at the end I have inserted

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) ani...@mail.com 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

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 pre/pre tags to preserve formatting. whenever I do a print_r(), i also encapsulate it within a pre/pre tag so it is readable. on another note, when I use variables within double quotes (or even the heredoc