revinkevin Posted April 22, 2006 Share Posted April 22, 2006 Is it possible in php to add information at the end of a text string.e.g $name=$name+" was here";Thanks. Link to comment https://forums.phpfreaks.com/topic/8111-adding-information-to-a-text-variable/ Share on other sites More sharing options...
AndyB Posted April 22, 2006 Share Posted April 22, 2006 Yes, but using the concatenation operator (a dot) like so:[code]$name.= " was here";[/code] Link to comment https://forums.phpfreaks.com/topic/8111-adding-information-to-a-text-variable/#findComment-29578 Share on other sites More sharing options...
revinkevin Posted April 24, 2006 Author Share Posted April 24, 2006 [!--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 Link to comment https://forums.phpfreaks.com/topic/8111-adding-information-to-a-text-variable/#findComment-30094 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.