Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function tgl_indo($tgl){
- $tanggal = date("j", strtotime($tgl));
- $bulan = get_bulan(date("n", strtotime($tgl)));
- $tahun = date("Y", strtotime($tgl));
- $jam = date("H", strtotime($tgl));
- $menit = date("i", strtotime($tgl));
- return $tanggal.' '.$bulan.' '.$tahun;
- }
- function url_segment($position=0) {
- return explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))[$position];
- }
- function base_url(){
- return "http://localhost/PW2/prak11_oop";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement