Method: size::ratio
Gets the ratio by width and height
Info
Syntax
size::ratio($width, $height)
Parameters
- $width (int)
- $height (int)
Return (float)
Example
echo size::ratio(1200, 768);
// output: 1.5625
Gets the ratio by width and height
size::ratio($width, $height)
echo size::ratio(1200, 768);
// output: 1.5625