Do you have a brand new installation of the Sublime Text editor which you plan on using for PHP (or any other language which identifies special strings, like variable names, with a symbol, like the dollar sign ‘$’)? Don’t forget to change the Preferences > Settings — Default > “word_separators” to remove that dollar sign (or other symbol). Now your copy-paste won’t keep losing your ‘$’.