Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seamless MeatLoaf problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Okay.. this is my problem.. i want to put a var and an word together without a space... in java it is possible with a "+". How about PHP??

$type="meat";
echo "$type loaf";

(this returns "meat loaf" but I want to get rid of the space! --> meatloaf)
 
PHP has a concatenation operator, the dot.
What you are trying to acheive is probably this
$type = "meat";
echo $type . "loaf"; //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top