And neither does:

exec("cmd /c cls");
exec("command /c cls");
echo "cls\r";
//

Anyone know how to clear the screen using CLI PHP on Win32?

I know about the NCurses extensions but was looking for another way or something I missed.

    Yep. Along with:

    system("command /c cls");
    system("cmd /c cls");

    and some others.

    No errors anywhere and the code runs but it just doesn't clear the screen or it prints strange chars.

    Screen shot attached below. (7.7Kb)

      Write a Reply...