Merge value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Merge value

Post 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?
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Code: Select all

$z = $x . $y;
. adds strings and characters together
+ adds numbers
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Post by S_henry »

Ok. Thanx LiLpunkSkateR :D
Post Reply