Jump to content

Archived

This topic is now archived and is closed to further replies.

revinkevin

Adding information to a text variable.

Recommended Posts

Is it possible in php to add information at the end of a text string.

e.g

$name=$name+" was here";

Thanks.

Share this post


Link to post
Share on other sites
Yes, but using the concatenation operator (a dot) like so:
[code]$name.= " was here";[/code]

Share this post


Link to post
Share on other sites
[!--quoteo(post=367444:date=Apr 22 2006, 01:40 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Apr 22 2006, 01:40 PM) [snapback]367444[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Yes, but using the concatenation operator (a dot) like so:
[code]$name.= " was here";[/code]
[/quote]

Thanks that solved it

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.