note 37145 added to tutorial.useful

From: Date: Tue, 04 Nov 2003 21:57:59 +0000
Subject: note 37145 added to tutorial.useful
Groups: php.notes 
Request: Send a blank email to php-notes+get-59909@lists.php.net to get a copy of this message
as an ASP user (which, as far as I can see, works similarly) I have found it useful sometimes to imagine the following is happening. 1. The system assumes the whole file is PHP code 2. There is a notional ?> at the beginning of the file 3. There is a notional <?PHP at the end 4. The processor treats ?>foo<?php as echo("foo"); (and allows CR LF etc without confusion) PS, I am completely naive in PHP at this stage. so I hope, if this is misleading, someone will ditch it. ---- Manual Page -- http://www.php.net/manual/en/tutorial.useful.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37145 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37145&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37145&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59909) next »