Re: overriding string concatenation '.'

From: Date: Wed, 12 Nov 2003 19:00:28 +0000
Subject: Re: overriding string concatenation '.'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169343@lists.php.net to get a copy of this message
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...

« previous php.general (#169343) next »