PHP code example of defrindr / katatanggal
1. Go to this page and download the library: Download defrindr/katatanggal 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/ */
defrindr / katatanggal example snippets
use defrindr\katatanggal\katatanggal;
$tanggal = new katatanggal("19-05-2002");
echo $tanggal->get();
// Output :
// Hari Minggu, Tanggal Sembilan Belas Bulan Lima Tahun Dua Ribu Dua