jak zrobić aby w tym skrypciw wyszło 5 i5
na razie wychodzi 4 i 5
CODE
<?php
/**
* @author 4965102621
* @copyright 2008
*/
function find_var($one , $two, $three) {
if (($one>0) &&($one<=10)) return $one;
if (($two>0)&&($two <=10)) return $two ;
if (($three>0)&&($three<=10)) return $three ;
}
$c_one = 'test';
$c_two=42 ;
$c_three = 4;
$right_var = &find_var($c_one , $c_two , $c_three);
$right_var++ ;
echo " wartosc zmiennej \$c_three oraz \$right_var wynoszą : " ;
echo "$c_three oraz $right_var<BN>\n" ;
?>
4 i 5
/**
* @author 4965102621
* @copyright 2008
*/
function find_var($one , $two, $three) {
if (($one>0) &&($one<=10)) return $one;
if (($two>0)&&($two <=10)) return $two ;
if (($three>0)&&($three<=10)) return $three ;
}
$c_one = 'test';
$c_two=42 ;
$c_three = 4;
$right_var = &find_var($c_one , $c_two , $c_three);
$right_var++ ;
echo " wartosc zmiennej \$c_three oraz \$right_var wynoszą : " ;
echo "$c_three oraz $right_var<BN>\n" ;
?>