Jump to content

Adding a space between variable in string


EchoFool

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.