ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  PHP and Heredocs
Subject:   Why not use php-style instead of perlish ?
Date:   2003-04-12 06:42:57
From:   anonymous2
Most of your examples can be written using simple php-style for strings. This isn't possible in PERL, but in PHP thats easy.


Example:
$var="SELECT *
FROM $table
WHERE a='1' ";


is better readable in my opinion and don't introduce the <<< Statement which can be confusing to newbies.


Also you started with separation of code and presentation, but mix them in one file, its better to have seperate files, and next would be to use a simple Template system, there are lots available for PHP. Because only then you are save that the designer does not 'break' your code.


Greez
Daniel


1 to 2 of 2
  1. Why not use php-style instead of perlish ?
    2003-04-14 12:05:23  chromatic | O'Reilly AuthorO'Reilly Blogger [View]

  2. Why not use php-style instead of perlish (2)?
    2003-04-12 06:55:56  anonymous2 [View]

    • Why not use php-style instead of perlish (2)?
      2003-04-12 11:34:46  Daniel Smith | [View]

      • Why not use php-style instead of perlish (2)?
        2003-04-15 03:32:34  anonymous2 [View]

        • Why not use php-style instead of perlish (2)?
          2003-04-15 09:48:25  Daniel Smith | [View]

1 to 2 of 2