Skip to content

PHP code snippet – How handle the number with k in laravel balde?

    public function convert($value)
    {
        $number = $value / 1000;
        return $number . 'k';
    }
See also  Java code snippet - How to use jparepository in unit test?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.