Advertisement
rfq

functionAll.php

rfq
May 4th, 2023
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2. function tgl_indo($tgl){
  3.     $tanggal = date("j", strtotime($tgl));
  4.     $bulan = get_bulan(date("n", strtotime($tgl)));
  5.     $tahun = date("Y", strtotime($tgl));
  6.     $jam = date("H", strtotime($tgl));
  7.     $menit = date("i", strtotime($tgl));
  8.     return $tanggal.' '.$bulan.' '.$tahun;
  9. }
  10.  
  11. function url_segment($position=0) {
  12.     return explode("/", parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))[$position];
  13. }
  14.  
  15. function base_url(){
  16.    return "http://localhost/PW2/prak11_oop";
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement