try
echo $time = date("g:i A", strtotime("10:20:00"));
//output : 10:20 AM
Related Contents:
- Getting time difference between two times in PHP [duplicate]
- How to convert seconds to time format? [duplicate]
- SQL SELECT query not working – unable to find error [closed]
- Mysql Database design structure
- How to include a PHP variable inside a MySQL statement
- Reference: What is a perfect code sample using the MySQL extension? [closed]
- MySQL and PHP: UTF-8 with Cyrillic characters [duplicate]
- How to use mysqli prepared statements?
- mysqli::query(): Couldn’t fetch mysqli
- Get sum of MySQL column in PHP
- Causes of MySQL error 2014 Cannot execute queries while other unbuffered queries are active
- PDO with INSERT INTO through prepared statements [closed]
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in [duplicate]
- How do I execute PHP that is stored in a MySQL database?
- convert php date to mysql format
- Storing and displaying unicode string (हिन्दी) using PHP and MySQL
- Delete multiple rows by selecting checkboxes using PHP
- Why is password_verify returning false?
- Real escape string and PDO [duplicate]
- PDO multiple queries
- Best practice multi language website
- The holy grail of cleaning input and output in php?
- HTML – Change\Update page contents without refreshing\reloading the page
- Import CSV file directly into MySQL
- convert date string to mysql datetime field
- PHP mysql search multiple tables using a keyword
- PDO Connection Test
- Laravel OrderBy relationship count
- Replacing mysql_* functions with PDO and prepared statements
- Is mysql_insert_id safe to use?
- How to know if MySQLnd is the active driver?
- MySql Error: 1364 Field ‘display_name’ doesn’t have default value
- How to solve General error: 2006 MySQL server has gone away
- How to write a stored procedure in phpMyAdmin?
- PDOstatement (MySQL): inserting value 0 into a bit(1) field results in 1 written in table
- How can I Use Prepared Statements in CodeIgniter
- Is there any way to check the performance of mysql Indexing
- Get Updated Value in MySQL instead of affected rows
- How to display Unicode data with PHP [duplicate]
- PHP / MySQL build tree menu
- Doctrine – How to print out the real sql, not just the prepared statement?
- Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted
- Can’t find FULLTEXT index matching the column list (indexes is set)
- “No such file or directory” or “No such host is known” when running migrations
- CakePHP Database connection “Mysql” is missing, or could not be created
- How to join two tables with ssp.class.php
- How to SELECT DEFAULT value of a field
- Image – Upload not responding, no access to $_FILES
- How to bulk update mysql data with one query?
- PDO were rows affected during execute statement