Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to get time php with am/pm

// Use this to get time and date with am and pm without leading 0
$date = date("g:i A");

// output: 1:46 PM
Comment

PREVIOUS NEXT
Code Example
Php :: laravel carbon time format AM PM 
Php :: php check if object has key 
Php :: check if valid url php 
Php :: get information from another website 
Php :: laravel request all delete _token 
Php :: debug wordpress 
Php :: number format comma php 
Php :: php get referrer 
Php :: php get latest file in directory 
Php :: laravel make directory if not exists 
Php :: php get array average 
Php :: php foreach first element 
Php :: max_input_time in wordpress 
Php :: laravel keep old input 
Php :: query sort alphabetically wp 
Php :: php set content type pdf 
Php :: laravel make trait command 
Php :: php shorthand if isset post 
Php :: laravel clear all cache 
Php :: php numbers from 1 to 100 array 
Php :: Enable / Disable modules in PHP 
Php :: redirect on validation error laravel to specific section laravel 
Php :: php find word in string 
Php :: php clean html tags 
Php :: php model last record 
Php :: array merge laravel 
Php :: take 10 character from string using php 
Php :: php copy image from one folder to another 
Php :: total no of occurances in string php 
Php :: how to get javascript variable value in php 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =