Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // ================ Pengecekan Biasa ================ //
- if (isset($_GET['tahun'])) {
- $tahun = $_GET['tahun'];
- } else {
- $tahun = date('Y');
- }
- echo $tahun;
- // ================ Pengecekan Nullcoalescing ================ //
- $tahun = $_GET['tahun'] ?? date('Y');
- echo $tahun;
Advertisement
Add Comment
Please, Sign In to add comment