This post originated from an RSS feed registered with PHP Buzz
by Angsuman Chakraborty.
Original Post: Fibonacci Series in 1-Line PHP / Java Software
Feed Title: Simple Thoughts on PHP
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: News and views as a Software Architect and Entrepreneur on PHP.
No, I am not competing for obfuscated code context. I realized while showing it to someone that Fibonacci series can be written much more succintly using modern programming languages like c, java or php.
Here is the one-line php version:
<?php for($current = 1, $last = 0, $i = 1;$i < = 100;$i++) echo ($current = $last [...]