Hi,
I was writing the code for the class to test passing of values. Here's my code.
<?php
class demo{
public function setMynum($a,$b){
$varA=$a;
$varB=$b;
return $varA;
return $varB;
}
}
$obj=new demo;
echo $obj->setMynum(12,13);
?>
Output is 12.
What is wrong with the code? I guess i have done everything to set things correct but something is missing i guess, any idea?