0

I want to display certain message one by one like:

settimeout(5);
echo "Message 1";

settimeout(5);
echo "Message 2";

settimeout(5);
echo "Message 3";

The settimeout function is not correct in php! So what is the best way to do that?

thisisme
  • 5
  • 1
  • 4

1 Answers1

0

This is something that needs to be done in Javascript.

PHP does not have a settimeout function.

You could however try thye sleep() method https://www.php.net/manual/en/function.sleep.php

bodi87
  • 501
  • 1
  • 6
  • 18