Template Doc

Navigate This Document

This doc is used to showcase different elements and doc styling

Here is come great code function something() { return nothing; }

/**
 * Outputs a readable number
 *
 * @access public
 * @static
 * @param mixed $n
 * @return void
 */
function readable_number($n) {

    // Strip any formatting

    $n = (0 + str_replace(",","",$n) );

    // Check if this is a number

    if ( !is_numeric($n) ) {
        return false;
    }

    // Determine size of number

    if ( $n > 1000000000000 ) {
        return round(($n/1000000000000),1) . ' trillion';
    }

    else if ( $n > 1000000000) {
        return round(($n/1000000000),1).' billion';
    }

    else if ( $n > 1000000) {
        return round(($n/1000000),1) . ' million ';
    }

    else if ( $n > 1000) {
        return round(($n/1000),1) . ' thousand';
    }

    return number_format($n);
}

Gist

By URL: https://gist.github.com/kjbenk/181f7b5f5366685a60f8

By Script:

Image

RPP-featured-image

List

  • Here
  • is
  • a
    • list
      • item
      • whats
    • up
    • my
  • man
  1. Here
  2. is
  3. a
    • list
      • item
      • whats
    • up
    • my
  4. man

 

Here is a quote