Results 1 to 2 of 2

Thread: PHP Functions - Return values

  1. #1
    Join Date
    Apr 2005
    Posts
    46,704

    Default PHP Functions - Return values

    PHP Functions - Return values


    Code:
    <?php
    
    function add($x,$y)
    
    {
    $total=$x+$y;
    return $total;
    }
    
    echo "1 + 16 = " . add(1,16);
    
    ?>

    Out put: 1 + 16 = 17

  2. #2
    Join Date
    Apr 2012
    Posts
    6

    Default

    it's not hard to study

Bookmarks

Posting Permissions

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