methods ftw
<?php
string replace(string in, string token, string replaceWith)
{
return in.Replace(token, replaceWith);
}
?>
Then you can do:
<?php
string myString = "I'm bad men.";
myString = replace(myString, " bad", "");
?>
Sorry, I'm a minimal variable freak
But when working with games, doing it like I showed is much better practice.