Converting a string with decimal pointers and thousand seperators interchangeably to a float in PHP : <p>I was wondering how to be able to convert any string to a float with the thousand separators and decimal pointers being able to be switched around. This is very useful when dealing with both European and American formats. E.g. <code>'2,192,520.12'</code> or <code>'2.192.520,12'</code></p>
