Re: [PHP] php string syntax question with html

2010-03-11 Thread Rene Veerman
Ah, ok.. Turns out mine does too ;) So for light apps, it can be considered a coder's preference then.. On Thu, Mar 11, 2010 at 9:16 AM, Ashley Sheridan wrote: > > My editor highlights those strings even without me having to keep breaking > out with concatenation Rene >

Re: [PHP] php string syntax question with html

2010-03-11 Thread Ashley Sheridan
On Thu, 2010-03-11 at 08:03 +0100, Rene Veerman wrote: > $var = 'bla'.$var2.'doh'.$var3['index'].'argh'.$var4[$var4index]; > > is so much more readable in any editor that does syntax highlighting, > and parses quicker too. > > On Thu, Mar 11, 2010 at 1:15 AM, David Mehler wrote: > > Hello, > >

Re: [PHP] php string syntax question with html

2010-03-10 Thread Rene Veerman
$var = 'bla'.$var2.'doh'.$var3['index'].'argh'.$var4[$var4index]; is so much more readable in any editor that does syntax highlighting, and parses quicker too. On Thu, Mar 11, 2010 at 1:15 AM, David Mehler wrote: > Hello, > I've got what is probably a very simple question, probably something > h

Re: [PHP] php string syntax question with html

2010-03-10 Thread Paul M Foster
On Thu, Mar 11, 2010 at 01:17:57AM +, Ashley Sheridan wrote: > > You're using single quotes in your string, so you can't have PHP parse > the string for variables to extend into their corresponding values. If > you wish to do that, use either double-quoted strings or heredoc/nowdoc > syntax

Re: [PHP] php string syntax question with html

2010-03-10 Thread Ashley Sheridan
On Wed, 2010-03-10 at 19:33 -0500, Adam Richardson wrote: > Try this: > > ' .'/wp-content/themes/themestyle/white.css" rel="stylesheet" type="text/css" > />'; > > On Wed, Mar 10, 2010 at 7:15 PM, David Mehler wrote: > > > Hello, > > I've got what is probably a very simple question, probably so

Re: [PHP] php string syntax question with html

2010-03-10 Thread Adam Richardson
Try this: ''; On Wed, Mar 10, 2010 at 7:15 PM, David Mehler wrote: > Hello, > I've got what is probably a very simple question, probably something > having to do with quotes single vs. double, but the answer is > frustrating elusive, I keep getting a syntax error. > I'm trying to customize a wo

[PHP] php string syntax question with html

2010-03-10 Thread David Mehler
Hello, I've got what is probably a very simple question, probably something having to do with quotes single vs. double, but the answer is frustrating elusive, I keep getting a syntax error. I'm trying to customize a wordpress theme a friend sent me. We're both using apache as web server and php5, b