Re: Glue together variable and string
- From: Andy Hassall <andy@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 20:43:20 +0000
On Tue, 28 Feb 2006 20:38:00 -0000, Krustov <krusty@xxxxxxxxxxxxxxxxxxxxx>
wrote:
<comp.lang.php , , helgefredheim@xxxxxxxxx>
<1141158879.329609.168420@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
<28 Feb 2006 12:34:39 -0800>
$suffix = "px";
$height = 14;
I need to print "14px" widthout any whitespace inbetween 14 and px. How
$thc="$suffix" . "$height";
The double-quotes are pointless here, but otherwise correct.
If you wanted to use double quotes, an alternative is:
$thc = "$suffix$height";
The OP should read: http://uk.php.net/manual/en/language.types.string.php
--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.
- References:
- Glue together variable and string
- From: helgefredheim
- Glue together variable and string
- Prev by Date: Glue together variable and string
- Next by Date: Re: file which tries to find itself and can't...
- Previous by thread: Glue together variable and string
- Index(es):
Relevant Pages
|