$min=7500;
$hours=$min%60;
but it is not working.

I am facing convert minutes to hours.
please help me

% percent|modulus ?or? / division by

Member Avatar for diafol
$mins = 7500;
$hrs = floor($mins/60);
$mins_left_over = $mins % 60;
commented: thats it, thats what I was looking for :) Hate when I can't think straight +13
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.