Is this possible to include an external file inside an echo?
This is what I am trying:
echo 'stuff'.(include($_SERVER["DOCUMENT_ROOT"].'/theme/button.php')).'morestuff';
I could simply write 3 lines but I wanted to know for simplification purposes.
No.
echoimplicity calls__toString()on whatever is contained within the statement to beecho‘d.What you should do is
includethe file and have the HTML in the included file. No need to echo.