PHP and C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • changli_to@hotmail.com

    PHP and C++

    I think PHP is a kind of typeless C++. In this vision I found that PHP
    is much better to understand. Is there any comparation for both
    languages?

  • dracolytch

    #2
    Re: PHP and C++

    PHP is a descendant of Perl. Perl is a descendant of AWK. AWK is a
    descendant of C. PHP is not a descendant of C++. While C++ and PHP have
    ancestry (and thus syntax) in common, they are different languages
    designed for very different purposes. I'm not exactly sure how you
    compare dried apples and applesauce.

    ~D

    Comment

    • Scott Auge

      #3
      Re: PHP and C++

      In article <1121794158.223 719.199010@g43g 2000cwa.googleg roups.com>,
      changli_to@hotm ail.com wrote:
      [color=blue]
      > I think PHP is a kind of typeless C++. In this vision I found that PHP
      > is much better to understand. Is there any comparation for both
      > languages?[/color]

      I was listening to a podcast with the fella who started out writing PHP.
      He basically wrote it out to abstract out of the apache module coding
      base - this way one didn't need to know apache module programming - just
      add some tags and then apache would use it to call into C routines PHP
      knew about. It was a "this tag - this routine" mapping thing.

      It has since been taken over by Zend who have made the engine better and
      better over time, turning a simple mapping parser into a real language.

      IMO, it is accurate to think of PHP as a typeless C++. A lot of the
      syntactical styles are the same even. A lot of the concepts are the
      same.

      Well, that is my opinion.

      Comment

      • Chung Leong

        #4
        Re: PHP and C++

        Typeless C might be more accurate. Many of the ++ features are not
        present in PHP.

        Comment

        • Anonymous

          #5
          Re: PHP and C++

          In article <1121805947.693 245.315610@o13g 2000cwo.googleg roups.com>,
          "Chung Leong" <chernyshevsky@ hotmail.com> wrote:
          [color=blue]
          > Typeless C might be more accurate. Many of the ++ features are not
          > present in PHP.[/color]

          I don't think so, Chung.

          Comment

          Working...