Re: Concating strings
- From: SM Ryan <wyrmwif@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 22:18:01 -0000
Lawrence Chitty <lawrence.chitty@xxxxxxxxxxxx> wrote:
# SM Ryan wrote:
# > "Silas Justiniano" <silasju@xxxxxxxxx> wrote:
# > # Hello people!
# > #
# > # I'learning TCL now. My first question is... The only way to concate
# > # strings is using append? See:
# >
# > PHP $var .= "substitutable string"
# > Tcl append var "substitutable string"
# >
# > PHP $var .= 'nonsubstitutable string'
# > Tcl append var {nonsubstitutable string}
# >
# > PHP "string1"."string2"
# > Tcl "string1string2"
# >
# > PHP $var . ' string2'
# > Tcl [concat $var {string2}]
# >
# > PHP $var . 'string2'
# > Tcl $var[concat {string2}]
# >
# > PHP "$var string2"
# > Tcl "$var string2"
# >
#
# PHP $var . 'string2'
# Tcl ${var}string2
You have to be careful becuase PHP '-strings-' are like Tcl {-strings-}.
PHP and Tcl both allow some kinds of substitution in "-strings-".
--
SM Ryan http://www.rawbw.com/~wyrmwif/
So basically, you just trace.
.
- References:
- Re: Concating strings
- From: Lawrence Chitty
- Re: Concating strings
- Prev by Date: Re: understanding arrays, and their use
- Next by Date: Re: understanding arrays, and their use
- Previous by thread: Re: Concating strings
- Next by thread: Re: Concating strings
- Index(es):
Relevant Pages
|