To begin with: being that this is my very first php program, were it not for Andrew for sure I didn't succeed. Thank you very much, Andrew!
("If I have seen farther than others, it is because I have stood on the shoulders of giants." - Isaac Newton, hi!)
So, what's new?
Well, I'm Italian.
I don't care at all if a chord is spelled G or sol, but when I prepare the scores for my friends they are far more comfortable with the Italian style: do, re, mi, fa, sol, la, si.
I modified the program so that it's able to transpose also the chords written that way.
As a kind of side effect, it's now possible to translate the chords from a name system to the other.
I suppose there is some other noteworthy user that can find it useful so here it is.
Once again: Thank you, Andrew!
Cheers
Maurizio Spagni
Update: Transformed the code in the message in a file attached.