ag3nt42 Posted June 2, 2008 Share Posted June 2, 2008 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 More sharing options...
BlueSkyIS Posted June 2, 2008 Share Posted June 2, 2008 $z=$x.":".$y; Link to comment https://forums.phpfreaks.com/topic/108433-solved-variable-merges/#findComment-555881 Share on other sites More sharing options...
ag3nt42 Posted June 2, 2008 Author Share Posted June 2, 2008 $z=$x.":".$y; You rock BlueSkyIS.. I'll commence smacking the crap outa myself now.. thankx you very much Link to comment https://forums.phpfreaks.com/topic/108433-solved-variable-merges/#findComment-555885 Share on other sites More sharing options...
discomatt Posted June 2, 2008 Share Posted June 2, 2008 For future reference: http://php.net/manual/en/language.operators.php Link to comment https://forums.phpfreaks.com/topic/108433-solved-variable-merges/#findComment-555897 Share on other sites More sharing options...
ag3nt42 Posted June 2, 2008 Author Share Posted June 2, 2008 actually it would be this page.. http://www.php.net/manual/en/language.operators.string.php but thank u just out of curosity, what would you have used for search ques in order to find that page?? Link to comment https://forums.phpfreaks.com/topic/108433-solved-variable-merges/#findComment-555935 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.