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? Quote 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; Quote 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. Quote 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? ??? Quote 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) Quote Link to comment https://forums.phpfreaks.com/topic/72699-solved-question-about/#findComment-366634 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.