putting 2 strings into one

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
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

putting 2 strings into one

Post by josh »

how can i put several strings into one? adding them with a + gives parse error and so does this

$message= "reffer = " $reffer " user = " $user " problem = " $problem;
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

use a .

$message = "reffer = " . $reffer . " user = " etc....
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

thanks
Post Reply