Page 1 of 1

Merge value

Posted: Sun Apr 11, 2004 9:08 pm
by S_henry
Let say I have 2 variables $X and $Y with value(char) for each one. I want to merge/combine the both value and assign it to a new variable $Z. The problem is I don't know how to merge/combine it. Anybody can help me pls?

Posted: Sun Apr 11, 2004 9:10 pm
by d3ad1ysp0rk

Code: Select all

$z = $x . $y;
. adds strings and characters together
+ adds numbers

Posted: Mon Apr 19, 2004 4:03 am
by S_henry
Ok. Thanx LiLpunkSkateR :D