Page 1 of 1

Problem putting numbers together

Posted: Sat Jun 01, 2002 8:43 pm
by Jose Arce
Hi, i'm making a script...and i need that a number, ip format (like this 255.255.255) joins another number to be like this: 255.255.255.255
The problem is that i do not know how to do that...i'm trying this way:

Code: Select all

$ip = $ip1.$ip2
that doesn't work...can u help me?

Posted: Sat Jun 01, 2002 9:11 pm
by volka
try

Code: Select all

<?php $ip = "$b1.$b2.$b3.$b4"; >?
a dot outside of a string ('string' or "string") is parsed as the concatenation operator

Posted: Sat Jun 01, 2002 9:15 pm
by Jose Arce
thx man :D