Can I call allert with php?

Can I call allert with php?

Answer 1, authority 100%

if Alert is in js then you can do it like this :

echo "<script>alert('text')</script>";

Answer 2, authority 100%

You can’t because php runs on the server side. What you see in the browser is the html code generated as a result of the request. Alert can only be called with Javascript.
ps Well, of course, you can install the server on the localhost (your computer) and call the WinApi MessageBox function via php, but this perversion has nothing to do with the topic 🙂