Welcome to WebmasterWorld Guest from 50.19.190.144

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

php parsing order question

     
7:51 pm on Dec 4, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Aug 15, 2002
posts:450
votes: 0


If you have an HTML file with <?php><?> tags in 3 separate locations, in what order are they parsed by the engine? In parallel or in sequence from top to bottom? Does it matter really?
7:52 pm on Dec 4, 2002 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


Top to bottom. Order does matter. If you call a variable at the top of your page and declare that variable at the bottom, your script will choke because you're asking for a variable you haven't created yet!