0

How to make work loop from php inside the html

i got this code $a= 0.00; $m=5; function myLoop($a, $m){ while($a < $m){ sleep(5); $a++; } }; myLoop(); the code keeps crushing and want to show it inside a <div><p> or <span> any suggestions ?

27th Apr 2018, 7:34 PM
Michal Tymburski
Michal Tymburski - avatar
1 Antwort
+ 2
count() function already exists. It's used to get array length, Change your function name
27th Apr 2018, 8:32 PM
Toni Isotalo
Toni Isotalo - avatar