Welcome to WebmasterWorld Guest from 54.161.110.186

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)

10+ Year Member



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.

Thanks

Air

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)

10+ Year Member



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