Warptweet Posted October 11, 2007 Share Posted October 11, 2007 Probably a foolish, and simple question... I use $somevariable .= "something"; to put something at the beginning of a string. How would I go about putting something at the END of a string? Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/ Share on other sites More sharing options...
dmikester1 Posted October 11, 2007 Share Posted October 11, 2007 I know one way to do it is: $newString = $start.$end; Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/#findComment-366627 Share on other sites More sharing options...
Warptweet Posted October 11, 2007 Author Share Posted October 11, 2007 ...Thanks, lol. Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/#findComment-366628 Share on other sites More sharing options...
darkfreaks Posted October 11, 2007 Share Posted October 11, 2007 topic solved? ??? Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/#findComment-366632 Share on other sites More sharing options...
MadTechie Posted October 11, 2007 Share Posted October 11, 2007 its basically concatenation, so, you could write <?php $data = "hello "; $data = $data."world"; ?> but a shortcut is <?php $data = "hello "; $data .= "world"; ?> if this makes sense, please close this topic (bottom left) Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/#findComment-366634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.