Announcement

Collapse
No announcement yet.

PHP Parsing Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PHP Parsing Question

    The following simple PHP is valid and works in Actinic but why does it indicate in red in Actinic?

    Code:
    $num=1;
    
    if ( $num <= 2 )
    {
    	echo ( "Number is less than or equal to two" );
    }
    (I think I read something about this before but can't find where)
    Attached Files

    #2
    Is it not something to do with the PHP parser recognising the < or > characters as possible HTML?
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Perhaps as it ony seems to happen with operators < and >.

      Comment


        #4
        If it bugs you Duncan you could remove it by balancing the "unclosed" tag in a PHP comment
        e.g.
        Code:
        $num=1;
        
        if ( $num <= 2 )
        {//>
            echo ( "Number is less than or equal to two" );
        
        }
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          Good one Fergus . I think I'll leave it though. It was just distracting when coding as initailly I thought there were errors.

          Comment

          Working...
          X