Jump to content
Larry Ullman's Book Forums

When Books And/Or Tutorials Say Something Should Be First After The Opening Php Tag


Recommended Posts

To name a few, there are some others headers and session variables that I don't even know of.

 

But what really takes precedence when placing functions before an opening tag?

Does it matter what order?

Best to not leave spaces between the order?

 

<?php

header('Content-Type': text/html; charset=UTF-8');

session();

 

// Some code

 

?>

 

VS

 

 

<?php

session();

header('Content-Type': text/html; charset=UTF-8');

 

// Some code

 

?>

 

Thanks,

Mark

Link to comment
Share on other sites

 Share

×
×
  • Create New...