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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
herghost Posted October 2, 2010 Author Share Posted October 2, 2010 Ahhh, smashing! Many thanks Quote Link to comment 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.