Laimonas171
2012-10-27 07:57:09
I need to create function at symba like at php. which allows to give some value. etc.
[php]
function name($name, $age)
{
if($age>18)
{
return = "My name is: " . $name . " and I'm older then 18";
}else{
return = "My name is: " . $name . " and I'm to young for porn…";
}
}
name('Laimonas', 23); // returns= My name is: Laimonas and I'm older then 18
[/php]
So what I need
to create function on simba with same working conditions
[php]
function name($name, $age)
{
if($age>18)
{
return = "My name is: " . $name . " and I'm older then 18";
}else{
return = "My name is: " . $name . " and I'm to young for porn…";
}
}
name('Laimonas', 23); // returns= My name is: Laimonas and I'm older then 18
[/php]
So what I need
to create function on simba with same working conditions