function rcurrency( $s ) { if ( ( string ) $s === "" ) { return "-"; } else { return sprintf( "€ %s", number_format( $s, 2 ) ); } }Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script.