Re: [PHP] Preferred Syntax

2011-12-15 Thread Tedd Sperling
On Dec 14, 2011, at 12:09 PM, Peter Ford wrote: > > With respect to tedd and Al, you've misread the question: the important > PHP-related bit is about whether to embed variables in double-quoted strings > or to concatenate them. These are only two of the options, and each has it's > pros and co

Re: [PHP] Preferred Syntax

2011-12-14 Thread Rick Dwyer
On Dec 14, 2011, at 1:53 PM, > wrote: The key thing to remember here is that this is a preference and not a performance thing. Thank you... this is basically what I wanted to know. I was concerned that not breaking the VARS out separately from the echo'ed text might cause some sort of per

RE: [PHP] Preferred Syntax

2011-12-14 Thread admin
> -Original Message- > From: Adam Richardson [mailto:simples...@gmail.com] > Sent: Wednesday, December 14, 2011 2:19 PM > To: Rick Dwyer > Cc: PHP-General > Subject: Re: [PHP] Preferred Syntax > > On Wed, Dec 14, 2011 at 7:59 AM, Rick Dwyer > wrote: > >

Re: [PHP] Preferred Syntax

2011-12-14 Thread Adam Richardson
On Wed, Dec 14, 2011 at 7:59 AM, Rick Dwyer wrote: > Hello all. > > Can someone tell me which of the following is preferred and why? > > echo " href='/mypage.php/$page_id'>$**page_name"; > > echo " href='/mypage.php/".$page_id."**'>".$page_name.""; > > When I come across the above code in line

RE: [PHP] Preferred Syntax

2011-12-14 Thread admin
> -Original Message- > From: Tamara Temple [mailto:tamouse.li...@tamaratemple.com] > Sent: Wednesday, December 14, 2011 1:40 PM > To: Tedd Sperling > Cc: Rick Dwyer; PHP-General > Subject: Re: [PHP] Preferred Syntax > > Tedd Sperling wrote: > > On Dec 14

Re: [PHP] Preferred Syntax

2011-12-14 Thread Robert Cummings
On 11-12-14 01:10 PM, David Harkness wrote: On Wed, Dec 14, 2011 at 4:59 AM, Rick Dwyer wrote: Can someone tell me which of the following is preferred and why? echo "$**page_name"; echo "".$page_name.""; On Wed, Dec 14, 2011 at 9:09 AM, Peter Ford wrote: Horses for courses. I use w

Re: [PHP] Preferred Syntax

2011-12-14 Thread Tamara Temple
Tedd Sperling wrote: > On Dec 14, 2011, at 7:59 AM, Rick Dwyer wrote: > > > Hello all. > > > > Can someone tell me which of the following is preferred and why? > > > > echo " > href='/mypage.php/$page_id'>$page_name"; > > > > echo " > href='/mypage.php/".$page_id."'>".$page_name.""; > > > > W

Re: [PHP] Preferred Syntax

2011-12-14 Thread David Harkness
On Wed, Dec 14, 2011 at 4:59 AM, Rick Dwyer wrote: > Can someone tell me which of the following is preferred and why? > > echo " href='/mypage.php/$page_id'>$**page_name"; > > echo " href='/mypage.php/".$page_id."**'>".$page_name.""; > On Wed, Dec 14, 2011 at 9:09 AM, Peter Ford wrote: > Hor

Re: [PHP] Preferred Syntax

2011-12-14 Thread Marc Guay
> BBEdit.  Is this just a preference choice or is one method better than the > other? As far as I know it's just preference. Your choice of editor could influence your decision; one form might be given nicer highlighting. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Preferred Syntax

2011-12-14 Thread Tedd Sperling
On Dec 14, 2011, at 7:59 AM, Rick Dwyer wrote: > Hello all. > > Can someone tell me which of the following is preferred and why? > > echo " href='/mypage.php/$page_id'>$page_name"; > > echo " href='/mypage.php/".$page_id."'>".$page_name.""; > > When I come across the above code in line 1, I ha

[PHP] Preferred Syntax

2011-12-14 Thread Rick Dwyer
Hello all. Can someone tell me which of the following is preferred and why? echo "$page_name"; echo "".$page_name.""; When I come across the above code in line 1, I have been changing it to what you see in line 2 for no other reason than it delineates out better in BBEdit. Is this jus