herghost Posted October 2, 2010 Share Posted October 2, 2010 Hi everyone, If I have a line like this: $nfn = $brand . $model; then when the variable is echoed ($nfn) will come out like nikeair, how can I save it with a space so when echoed it will display nike air? Cheers Link to comment https://forums.phpfreaks.com/topic/214986-real-quicky/ Share on other sites More sharing options...
kenrbnsn Posted October 2, 2010 Share Posted October 2, 2010 Put a space in when you concatenate the two values <?php $nfn = $brand . ' ' . $model; ?> Ken Link to comment https://forums.phpfreaks.com/topic/214986-real-quicky/#findComment-1118323 Share on other sites More sharing options...
herghost Posted October 2, 2010 Author Share Posted October 2, 2010 Ahhh, smashing! Many thanks Link to comment https://forums.phpfreaks.com/topic/214986-real-quicky/#findComment-1118324 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.