Re: overriding string concatenation '.'

From: Date: Thu, 13 Nov 2003 11:28:51 +0000
Subject: Re: overriding string concatenation '.'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169468@lists.php.net to get a copy of this message
tirumal b wrote:
Hello All I have an ip addr in a variable. I use 'ssh'.$ipaddr.'command' in a php file
if $ipaddr = "192.168.1.100" then echo 'ssh'.$ipaddr.'command' will be ssh192.168.1.100command what you probably wanted was 'ssh '.$ipaddr.' command' which would result in ssh 192.168.1.100 command and would take care of your "concatenation" problem. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com ----------------------- "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing."

« previous php.general (#169468) next »