I'm looking for a way to format the spaces between symbols and keywords in emacs.
For example I'd like to change the following php code :
foreach($a as $b) {
}
into
foreach ($a as $b) {
}
All I've been able to find thus far are external tools to run from emacs.
Related : Auto formatting a PHP file in emacs.
I'd prefer that it did the formatting on indent, is this possible?