What does <?= mean?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence k

    What does <?= mean?

    I'm looking at the template examples on this page:

    The Official GIT Repository of the Qcodo Development Framework for PHP - qcodo/qcodo


    I see stuff like

    <?= $_REQUEST["home"]; ?>

    I've never seen the "<?=" before. It causes the value of the tag to be
    echoed to the screen?

  • Ken Robinson

    #2
    Re: What does &lt;?= mean?


    lawrence k wrote:
    I see stuff like
    >
    <?= $_REQUEST["home"]; ?>
    It's short had for the echo verb.

    Ken

    Comment

    • Erwin Moller

      #3
      Re: What does &lt;?= mean?

      lawrence k wrote:
      I'm looking at the template examples on this page:
      >
      The Official GIT Repository of the Qcodo Development Framework for PHP - qcodo/qcodo

      >
      I see stuff like
      >
      <?= $_REQUEST["home"]; ?>
      >
      I've never seen the "<?=" before. It causes the value of the tag to be
      echoed to the screen?
      Hi,

      <?= only works if short_open_tags is set to true.
      In that case it is translated to:
      <? echo

      Regards,
      Erwin Moller

      Comment

      • william

        #4
        Re: What does &lt;?= mean?

        On Tue, 02 Jan 2007 17:02:43 +0100, Erwin Moller wrote:
        <?= only works if short_open_tags is set to true.
        In that case it is translated to:
        <? echo
        >
        Regards,
        Erwin Moller
        i heard that the syntax "<?" is obsolete/depreciated
        true/false ?

        Comment

        • Erwin Moller

          #5
          Re: What does &lt;?= mean?

          william wrote:
          On Tue, 02 Jan 2007 17:02:43 +0100, Erwin Moller wrote:
          >
          ><?= only works if short_open_tags is set to true.
          >In that case it is translated to:
          ><? echo
          >>
          >Regards,
          >Erwin Moller
          >
          i heard that the syntax "<?" is obsolete/depreciated
          true/false ?
          True, support for it will possibly (for sure??) be dropped in future
          releases if I understood well.

          So it is better to switch <?php right away.
          I did, with some reluctance since I always used the shorthand.

          Regards,
          Erwin Moller

          Comment

          • Sandman

            #6
            Re: What does &lt;?= mean?

            In article <1167753127.525 897.93990@42g20 00cwt.googlegro ups.com>,
            "lawrence k" <lkrubner@geoci ties.comwrote:
            I'm looking at the template examples on this page:
            >
            The Official GIT Repository of the Qcodo Development Framework for PHP - qcodo/qcodo

            >
            I see stuff like
            >
            <?= $_REQUEST["home"]; ?>
            >
            I've never seen the "<?=" before. It causes the value of the tag to be
            echoed to the screen?
            Yep.


            --
            Sandman[.net]

            Comment

            Working...