Zend - The PHP Company




Code Gallery: lecuanda


Helper function for debugging scripts  

Type: code fragment
Added by: lecuanda
Entered: 19/07/2001
Last modified: 07/12/2000
Rating: - (fewer than 3 votes)
Views: 4522
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


Spelled out currency amount in spanish  

Type: application
Added by: lecuanda
Entered: 06/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 6981
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)




Search