RE: Help with a home-grown function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 21 July 2005 22:19, Chris W. Parker wrote:

> 2. It will be a good idea to get out of the habit of breaking
> in and out
> of PHP like that. Instead just do: echo 'hi1';

Why?  Some of us just strongly prefer the breaking in and out style -- I use
it almost exclusively.  In my 10,000s of lines of code, you can probably
count the number of echos on your fingers!

> You'll have problems down the road with modifying the headers
> (cookies, redirects, content-type, etc.) if you break in and out.

Absolute rubbish -- whatever gives you this idea?  The sequence

  ?>x<?php

Is functionally identical to 

  echo 'x';

so anything that works with the latter will work identically with the
former.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux