I am running a typical php-engined ajax webpage. I use echo to return a html string from the php code. My question is, if I have some other code after the echo, will those code get executed? Or echo behaves similar to exit, which immediately return and stop running the php code? Thanks.
Share
No,
echoin no way exits, you normally have more than one echo in a script.exitdoes take a string argument that it will output before exiting, however, so you can do:and it will output the string and exit