I searched for ‘difference between echo and print in php’, but got different answer with different logics. Here is what I understood after reading different blogs, and tutes. Basically both keywords echo and print work same. they give output to the user, but there are some minor differences as follows:
gives no return value.
gives return value i.e. 1(one)
It can’t be used in expression, because it doesn’t return any value.
can be used in expression, because it returns value.
Assets, based on their location, can be classified as:
Source asset files are available together with PHP source code which is not accessible directly via the web. To use source assets in a page, they should be copied to a web directory and turned into the so-called published assets. This process is called asset publishing which will be described in detail shortly.
Published asset files are available in a web accessible directory and can thus be directly accessed via the web.
The asset files are located on a Web server that is different from the one hosting your Web application.