Hot answers tagged


Short answer: That PHP code is run on the server before sending the response to the crawler, so by the time the page reaches the crawler, all that info is already populated. For sites written using server-side languages such as your example, here's the full lifecycle when a user visits a page: The user's browser sends an HTTP request to the server for a ...


There is no difference in PHP or JavaScript for example; except that, with the brackets, it is easier to add instructions later without breaking your code (you are less likely to forget to add the brackets that become mandatory).

Only top voted, non community-wiki answers of a minimum length are eligible