| Posted by sk on 10/06/06 15:04 
That explains it. Thanks much. Can now quit spinning my wheels.
 Thanks to all.
 
 
 
 Chris Hope wrote:
 
 > sk wrote:
 >
 >
 >>According to zend.com
 >>
 >>Double and single quoted strings are handled differently by PHP.
 >>Double quoted strings are interpreted while single quoted strings are
 >>treated exactly as written. For example:
 >>
 >>$foo = 2;
 >>echo "foo is $foo";     // this prints:  foo is 2
 >>echo 'foo is $foo';     // this prints:  foo is $foo
 >>echo "foo is $foo\n";   // this prints:  foo is 2 (with a new-line)
 >>echo 'foo is $foo\n';   // this prints:  foo is $foo\n
 >>
 >>I can not get this to work.
 >
 >
 > In what way can you not get it to work?
 >
 > If you are outputting HTML and viewing it in a web browser, it pays to
 > remember that newline breaks are *not* rendered. To render a line break
 > in a web browser you need <br />  If you view the source of the page
 > you'll see those \n line breaks there but not in the normal browser
 > window.
 >
  Navigation: [Reply to this message] |