skij
asked on
PHP: Convert hour fractions to hour:minutes
Using PHP, how can I convert hours with fractions to hours with minutes?
For example,
For example,
echo hourMinutes(4.5); // 4:30
echo hourMinutes(-4.5); // -4:30
echo hourMinutes(1.9); // 1:54
echo hourMinutes(22); // 22:00
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window