Function to validate number ( Check if frequency of adigit is less than thedigit itself or not )
< ? php function validate ( $ n ) { for ( $ i = 0 ; $ i < 10 ; $ i ++ ) { $ temp = $ n ; $ count = 0 ; while ( $ temp ) {