dinamic rows and colomns

I have a table with a variable ‘$sec=345;’ and I want to select the each digit of the int and draw a histogram chart

5 *****
4 ****
3 ***

Could anyone give me an example of how to write this in PHP
thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service