Jump to content

[SOLVED] variable merges...


ag3nt42

Recommended Posts

Ok this should be an easy one and I kno i'll be smacking myself later for even asking this but.. I'm having the damnedest time trying to get this working and it is being uncooperative.

 

I have two variables i want merged

 

$x="Something";
$y="Else";
$z=$x+":"+$y;

echo($z);

 

this is the syntax i've been trying to use but to no avail.

 

So to me the output should be this

 

Result:
Something:Else

 

I've looked around on meshing variables but I couldn't find anything.

any ideas guys?

 

thanx,

ag3nt42

Link to comment
https://forums.phpfreaks.com/topic/108433-solved-variable-merges/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.