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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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 | |
// Data 1 | |
$data [] = array( | |
'no' => 1, | |
'nama' => 'Rudi', | |
'alamat' => 'Nganjuk' | |
); | |
// Data 2 | |
$data [] = array( |
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 | |
// File json yang akan dibaca (full path file) | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
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 | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
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 | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
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 | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
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
swal({title:"Sukses", text :"Setting berhasil dihapus", type : "success", showCancelButton : true}).then((result)=>{ | |
if (result.value) { | |
location.reload(); | |
} | |
}) |
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 | |
# sample 1 | |
function isValidEmail($email){ | |
return filter_var($email, FILTER_VALIDATE_EMAIL) !== false; | |
} | |
# sample2 | |
function isValidEmail($email) { | |
return filter_var($email, FILTER_VALIDATE_EMAIL) | |
&& preg_match('/@.+\./', $email); |
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
<div class="nav-tabs-custom"> | |
<ul class="nav nav-tabs pull-right"> | |
<li class="active"><a href="#tab_1-1" data-toggle="tab">Tab 1</a></li> | |
<li><a href="#tab_2-2" data-toggle="tab">Tab 2</a></li> | |
<li><a href="#tab_3-2" data-toggle="tab">Tab 3</a></li> | |
<li class="dropdown"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | |
Dropdown <span class="caret"></span> | |
</a> | |
<ul class="dropdown-menu"> |
OlderNewer