Jump to content

Recommended Posts

Posted

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.

  • 2 weeks later...
Posted

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. 

Guest
This topic is now closed to further replies.
×
×
  • Create New...