This little function will help you debug scripts, specially if you use a lot of objects and arrays. it prints a beautified version of the 'print_r' output.
if you add this function to your script, just call your script adding ?debug=1 (script.php?debug=1)or add the $debug global variable set to true to see the debugging output
This will print a spelled out number in spanish. It can be easely modified for other languages that use special cases for numbering, such as german or french This code will
generate a coherent written amount in spanish, given any number between 0 and 999,999,999 can be easely modified for any languaje, as it handles special cases and descriptors in
spanish (tough languaje)