![]() |
|
|
+ Search |
![]()
|
May 15th, 2000 10:08
Robert Ames, Alan Tam, http://www.php.net/manual/functions.arguments.php
You might try:
<pre>
function increment_variable( &$counter ) {
$counter ++;
}
$number_of_hits = 0;
while( $number_of_hits < 100 ) {
increment_variable( $number_of_hits );
}
</pre>
The key is to use the ampersand in the function name.