This post originated from an RSS feed registered with PHP Buzz
by Jason Sweat.
Original Post: Euclid’s Algorithm in one line of PHP
Feed Title: Jason E. Sweat's weblog
Feed URL: http://blog.casey-sweat.us/?feed=rss2
Feed Description: Blogging about whatever interests me at the moment, mainly PHP, web application and Gentoo Linux.
I recently answered a post regarding reducing fractions, in which I wrote a one line recursive function to implement Euclid's Algorithm, and I just liked the elegance of the solution, and wanted to mention and save it for posterity. It is not an OOP solution, but being object oriented is ...