Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Text concatenation

sorry to ask such a basic question...



1:12 am on Feb 28, 2002 (gmt 0)

I'm new to PHP ...(about six hours), I need to generate a password by concatenating two text values and I'm unsure as to the syntax required.

Any help will be very much appreciated.



2:01 am on Feb 28, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Welcome to wmwm UK_matrix, hope you enjoy the forums.

/* Assigning a string. */
$str = "This is a string";

/* Appending to it. */
$str = $str . " with some more text";

/* Another way to append */
$str .= " with more text added in a different way";


2:13 am on Feb 28, 2002 (gmt 0)

As simple as that huh ?

Thanks for taking the time to help me.
Much appreciated


Featured Threads

Hot Threads This Week

Hot Threads This Month