String manipulation, optimize
- From: "Rune" <slam@xxxxxxxxx>
- Date: Mon, 8 Aug 2005 10:46:18 +0200
Is it best to use double quotes and let PHP expand variables inside strings,
or is it faster to do the string manipulation yourself manually?
Which is quicker?
1)
$insert = 'To Be';
$sentence = "$insert or not $insert. That is the question.";
or
2)
$insert = 'To Be';
$sentence = $insert . ' or not ' . $insert . '. That is the question.';
Small thing, but might as well get it right.
Thanks
/Rune
.
- Follow-Ups:
- Re: String manipulation, optimize
- From: Chung Leong
- Re: String manipulation, optimize
- From: Erwin Moller
- Re: String manipulation, optimize
- From: Alvaro G Vicario
- Re: String manipulation, optimize
- Prev by Date: Sending mail with an attachment
- Next by Date: Re: Retrieving data from remote file - question from complete newbie
- Previous by thread: Sending mail with an attachment
- Next by thread: Re: String manipulation, optimize
- Index(es):
Relevant Pages
|