Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Passing an Argument to a Function by Value

Tue Oct 28, 2008 1:54 pm

Code:

<html>
<head>
<title>Passing an Argument to a Function by Value</title>
</head>
<body>
<?php
function addFive( $num ) {
     
$num += 5;
}
$orignum = 20;
addFive( $orignum );
print(
$orignum );
?>
</body>
</html>






Post a reply
  Related Posts  to : Passing an Argument to a Function by Value
 Function with an Optional Argument     -  
 Passing Pointers to function example     -  
 Passing arrays as function parameter in java     -  
 Invalid Argument error in IE7     -  
 argument type of a program's main() method     -  
 invalid argument on IE with script to center objects     -  
 Array Passing     -  
 Passing a Reference Variable     -  
 JSP Passing Arrays to Methods     -  
 passing string value from java to .exe file     -  

Topic Tags

PHP Basics, PHP Functions