title: Getting the length of the text given the height in php
body: <p>Writing text to an input in html. Then it is given a dimension. For example, given 10, a calculation will be made so that each letter is 10 cm high and the length of the sentence will be found. How can I do that. I give the text in the input a size of px. Then I convert it to cm, but how can I calculate the length of the sentence in cm? I need to use php as language.</p>