Too bad to be true... but reality was surprising enough after googling such a simple topic without any proper solution...
Admins please don't mark it as a double because none of the answers here : How can clear screen in php cli (like cls command) was working under Windows platform.
I tried :
system('cls');
I tried :
system('clear'); //Might work under Linux
I tried :
echo chr(27).chr(91).'H'.chr(27).chr(91).'J';
I tried :
ncurses_clear();
I tried :
passthru('clear');
I tried :
passthru('cls');
None of them was working for me (...as you might guess)
I need the cursor to come back to 0,0 position so please don't post any loop of blank strings or "\r\n" to the screen.