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

Re: [PHP] Heredocs

2007-08-29 Thread Daniel Brown
On 8/29/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > I don't think you can have a space between the <<< and the 'END' bit... > > On Wed, August 29, 2007 6:00 am, RodgerW wrote: > > Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? > > I prrint via heredocs and its not working. Pri

Re: [PHP] Heredocs

2007-08-29 Thread Richard Lynch
I don't think you can have a space between the <<< and the 'END' bit... On Wed, August 29, 2007 6:00 am, RodgerW wrote: > Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? > I prrint via heredocs and its not working. Print with single quotes > and > double quotes work. > >

Re: [PHP] Heredocs

2007-08-29 Thread Thijs Lensselink
On Wed, 29 Aug 2007 13:01:07 +0200, RodgerW <[EMAIL PROTECTED]> wrote: > Are heredocs supported by PHP 5.2.3 running in WinXP/Apache2.2.4 ? > I prrint via heredocs and its not working. Print with single quotes and > double quotes work. > > > string init method 3: hered

RE: [PHP] Heredocs

2007-08-29 Thread Edward Kay
> Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? > I prrint via heredocs and its not working. Print with single quotes and > double quotes work. > > > string init method 3: heredocs > print <<< END >

RE: [PHP] Heredocs

2007-08-29 Thread Jay Blanchard
[snip] Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ? I prrint via heredocs and its not working. Print with single quotes and double quotes work. string init method 3: heredocs The closing identifier must begin

Re: [PHP] Heredocs

2007-08-29 Thread Aaron Gould
RodgerW wrote: Are heredocs supported by PHP 5.2.3 running in WinXP/Apache2.2.4 ? I prrint via heredocs and its not working. Print with single quotes and double quotes work. string init method 3: heredocs END; ?> It works here