Drew2 Posted December 12, 2020 Report Posted December 12, 2020 Quick question: Why are there no periods bordering this php insertion? header("Location: $url"); I would expect it to look like this: header("Location: . $url . "); My guess, reading W3Schools and elsewhere is that both would amount to the same thing. I have to wonder though, it they amount to the same thing, why ever use the periods? -Seems like more work.
administrator Posted December 22, 2020 Report Posted December 22, 2020 In programming, some languages will just allow some flexibility. In some instances, using extra code is an option to make the code more ridged ... which can be good for maintainability reasons.
Recommended Posts