PHP code example of sujalpatel / inttoenglish
1. Go to this page and download the library: Download sujalpatel/inttoenglish 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/ */
sujalpatel / inttoenglish example snippets
php
IntToEnglish::Int2Eng(1000); // One Thousand
IntToEnglish::Int2Eng(10500); // Ten Thousand Five hundred
php
use Illuminate\Http\Request;
use SujalPatel\IntToEnglish\IntToEnglish;
class TestController extends Controller
{
public function index() {
echo IntToEnglish::Int2Eng(4500000); //Four Million Five Hundred Thousand
}
}
php
Route::get('/', 'TestController@index');