EchoFool Posted March 15, 2008 Share Posted March 15, 2008 I have a string i created which works but theres a space that is not carrying into the database... This is what i have: <?php $Log = $Staff.'['.$_SESSION['Current_User'].'] removed '.$RemoveTotal . $ItemName.'from '.$Player.'['.$UserID.']'; The sentence how ever comes out like this: Username[1] removed 2Bags from Username2[2] The part i am trying to correct is the 2Bags to become 2 Bags but I do not know how to add the space..... that part is relating to removed '.$RemoveTotal . $ItemName.'from Hope you can help me. Link to comment https://forums.phpfreaks.com/topic/96294-adding-a-space-between-variable-in-string/ Share on other sites More sharing options...
paul2463 Posted March 15, 2008 Share Posted March 15, 2008 does this not work? ?php $Log = $Staff.'['.$_SESSION['Current_User'].'] removed '.$RemoveTotal.' '. $ItemName.'from '.$Player.'['.$UserID.']'; ?> Link to comment https://forums.phpfreaks.com/topic/96294-adding-a-space-between-variable-in-string/#findComment-492909 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.