This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let str = "ENROLL_FP PIN=4832 FID=0 RETRY=3 OVERWRITE=1"; | |
let res = str.replace("ENROLL_FP ", ""); | |
let splitX = res.split("\t") | |
let values = splitX | |
let newObject = {} | |
let data = values.forEach((item, index) => { | |
let array = item.split("=") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function penyebut($nilai) { | |
$nilai = abs($nilai); | |
$huruf = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas"); | |
$temp = ""; | |
if ($nilai < 12) { | |
$temp = " ". $huruf[$nilai]; | |
} else if ($nilai <20) { | |
$temp = penyebut($nilai - 10). " belas"; | |
} else if ($nilai < 100) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arr = array(Senin, Selasa, Rabu, Senin, Senin); | |
foreach(array_count_values($arr) as $k => $v){ | |
if($v > 1){ | |
echo "Hari <b>".$k."</b> ada ".$v." buah di dalam array<br />"; | |
} | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Bangkok'); | |
$x=date('Ymd.hisms'); | |
echo 'tr'.$x; | |
?> |