On Thu, 8 Feb 2001, Todd Cary wrote:

> I have "Profession PHP Programming" and I see that echo() and print()
> are used alomst interchangeably.  When should each one be used?

    What is the difference between echo and print               ?
    -------------------------------------------------------------
    http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41
 
> Also, I see "<?php" and "<?" used.  Is there a preference?

<? is a short tag, <?php is not.  <?php will always work, everywhere,
always.  This is what should be used.  <? will most likely always work
wherever your script may travel but keep in mind, this setting can be
turned off.  See :

    http://www.php.net/manual/en/configuration.php#ini.short-open-tag

> And how about "};" versus "}" to end a block?  I see both.

Don't do }; as it looks funny.  Btw, I've never seen }; used within the
manual.

Regards,

Philip


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to