Thread: Printing

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    41
    Rep Power
    15
    Perl has a print function that'll allow you to print text without having to comment out Perl interperated characters. For example:

    print<<EOF;
    Text goes here, blah blah blah blah, """,... $$&$&$,
    EOF

    Does PHP have a similiar feature?
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    11
    Rep Power
    0
    You can put:
    <?php if($var){?>
    <p>$var=true</p>
    <?php} else {?>
    <p>$var=false</p>
    <?php}?>

    Simple, isn't it? :P

    ------------------
    {C00L|Z3R0} on irc.ptnet.org

    [This message has been edited by coolzero (edited June 22, 2000).]

Similar Threads

  1. printing receipts with java
    By dave2k in forum Java Help
    Replies: 1
    Last Post: December 19th, 2003, 08:04 AM
  2. Problem with printing
    By laurence10 in forum Java Help
    Replies: 0
    Last Post: March 11th, 2003, 02:09 PM
  3. A printing problem ... would drive me from PHP to Java
    By danieldafoe in forum PHP Development
    Replies: 0
    Last Post: February 4th, 2003, 12:35 AM
  4. Replies: 11
    Last Post: March 26th, 2002, 06:35 AM
  5. Good alternatives to HTML for printing?
    By grifen in forum HTML Programming
    Replies: 6
    Last Post: March 5th, 2002, 08:23 AM

IMN logo majestic logo threadwatch logo seochat tools logo