Not sure if this is going to be possible with PHP but i id it by accident before and i forget how i did it, basically i had made a script that echo'd out a result but i added a u sleep between the three results and it made it so every like 1 second a result would be echo, i need to create a script to echo out a response every 3 seconds. Any tips? Sorry, I'm new to it. When i try the below code it doesn't work.
<?php
echo "test";
sleep(2);
echo "test2";
sleep(2);
echo "test2";
echo $answer;
?>