This function returns the number of digits in nth Fibonacci number after ceiling it Formula used ( n * log ( phi ) - ( log 5 ) / 2 )
< ? php function numberOfDigits ( $ n ) { if ( $ n == 1 ) return 1 ;