This is a discussion on RE: [PHP] overriding string concatenation '.' within the PHP General forums, part of the PHP Programming Forums category; CPT John W. Holmes <mailto:holmes072000@charter.net> on Wednesday, November 12, 2003 10:43 AM said: >&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
CPT John W. Holmes <mailto:holmes072000@charter.net>
on Wednesday, November 12, 2003 10:43 AM said: >> The dots in ipaddr variable are considered to be >> string concatenations. > > No they are not. Show some examples. What am I missing here? How is the dot operator not considered concatenation? $concatenatedString = 'a'.'concatenated'.'string'; tirumal, Do you want do to this? $string = "ssh.$ipaddr.command"; ? Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ |
|
|||
|
From: "Chris W. Parker" <cparker@swatgear.com>
> > CPT John W. Holmes <mailto:holmes072000@charter.net> > > > The dots in ipaddr variable are considered to be > > > string concatenations. > > > > No they are not. Show some examples. > > What am I missing here? How is the dot operator not considered > concatenation? > $concatenatedString = 'a'.'concatenated'.'string'; We know periods are for concatination, but periods _within_ strings are not. $ipaddr = "122.122.122.122"; $str = 'a'.$ipaddr.'string'; From the way I read that, the periods _within_ $ipaddr were being seen as concatination characters (according to OP), which doesn't make sense. So I wanted an example. ---John Holmes... |