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

Functions and References

Tue Oct 28, 2008 1:53 pm

Code:
<?php
     $val1
= "";
     
$val2 = "";
   
     function
return_multi_value(&$value1, &$value2)
     {
          
$value1 = "This is the first value";
          
$value2 = "This is the second value";
     }
   
     
return_multi_value($val1, $val2);
     print(
"$val1<br />$val2<br />");
?>




Post a reply
  Related Posts  to : Functions and References
 Constant References     -  
 References confuse me. How do they differ from pointers?     -  
 PHP Array Functions     -  
 What are Inline functions?     -  
 What are Virtual Functions?     -  
 using of scanf and printf functions     -  
 Calling Functions Dynamically     -  
 Lets Learn C++----->(Lesson 5) Functions     -  
 program to run shell command line functions     -  

Topic Tags

PHP Functions