List Constants

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

    List Constants

    A little embarrassing but: is there any easy way to echo (the name and
    value of ) all defined constants ?

  • Michael Fesser

    #2
    Re: List Constants

    ..oO(bingomanat ee)
    >A little embarrassing but: is there any easy way to echo (the name and
    >value of ) all defined constants ?
    To get defined constants call get_defined_con stants(). ;)

    Micha

    Comment

    • Paul Lautman

      #3
      Re: List Constants

      bingomanatee wrote:
      A little embarrassing but: is there any easy way to echo (the name and
      value of ) all defined constants ?
      Like Micha said or $GLOBALS


      Comment

      • Toby A Inkster

        #4
        Re: List Constants

        Paul Lautman wrote:
        Like Micha said or $GLOBALS
        $GLOBALS has global variables, not constants.

        --
        Toby A Inkster BSc (Hons) ARCS
        [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
        [OS: Linux 2.6.12-12mdksmp, up 33 days, 12:31.]

        Parsing an HTML Table with PEAR's XML_HTTPSax3

        Comment

        • Captain Paralytic

          #5
          Re: List Constants

          On 24 Jul, 09:52, Toby A Inkster <usenet200...@t obyinkster.co.u k>
          wrote:
          Paul Lautman wrote:
          Like Micha said or $GLOBALS
          >
          $GLOBALS has global variables, not constants.
          >
          --
          Toby A Inkster BSc (Hons) ARCS
          [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
          [OS: Linux 2.6.12-12mdksmp, up 33 days, 12:31.]
          >
          Parsing an HTML Table with PEAR's XML_HTTPSax3
          http://tobyinkster.co.uk/blog/2007/0...table-parsing/
          Oops!

          Comment

          Working...