Results 1 to 7 of 7

Thread: PHP - -

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63

    PHP - -

    PHP Code:
            $x 3;
        
    $y 5;
        
        echo 
    "$x + $y = ".$x+$y.'<br /><br />';
            echo 
    "$x * $y = ".$x*$y.'<br /><br />'


    HTML Code:
    8
    
    3 * 5 = 15
    3 + 5 = 8 ??
    .

  2. #2
    Registered User morgoth_srs's Avatar
    Join Date: Mar:2004
    Location: Sofia
    Posts: 1,149
    . + . "$x + $y = ".$x "3 + 5 = 3". "3 + 5 = 3" + 5 + , "3 + 5 = 4" 3, 5 8. , "8" '<br /><br />' . :
    echo "$x + $y = ".($x+$y).'<br /><br />'; $x+$y .
    * .
    : . : . : . : . : . : -. : -.

  3. #3
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    morgoth_srs,
    .
    .
    .

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , echo , , - ( ).. , .

    echo "$x + $y = ",$x+$y,'<br /><br />';

    , echo , , .
    , operator precedence.

    - operator precedence, - .

  5. #5
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    -, , , :
    PHP Code:
    $x 3;
    $y 5;

    echo 
    $x ' + ' $y ' = ' $x+$y '<br /><br />';
    echo 
    $x ' * ' $y ' = ' $x*$y '<br /><br />'
    ''? * *
    - !
    ...

  6. #6
    Registered User zombie13's Avatar
    Join Date: Oct:2012
    Location: Bulgaria - Ruse
    Posts: 63
    tedych , , . - ?!!

    vbTheKing ,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |