PHP code example of himelali / in-words
1. Go to this page and download the library: Download himelali/in-words library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
himelali / in-words example snippets
'en'
$in_word = new InWord('bn');
$in_word = new InWord();
$in_word->setNumber(215245);
echo $in_word->getNumber(); //২১৫২৪৫
echo $in_word->getWord(); //দুই লক্ষ পনের হাজার দুই শত পঁয়তাল্লিশ
$in_word->setNumber(527.56);
echo $in_word->getNumber(); //৫২৭.৫৬
echo $in_word->getWord(); //পাঁচ শত সাতাশ দশমিক পাঁচ ছয়
$in_word = new InWord();
echo $in_word->setNumber(527.56)->getNumber(); //৫২৭.৫৬
echo $in_word->setNumber(527.56)->getWord(); //পাঁচ শত সাতাশ দশমিক পাঁচ ছয়