So for example i have this class in two different ways:
class Text {
private $Foo;
function Bar() {
if ($this->Foo == "Bar" || $this->Foo == "Foo") {
return $this->Foo;
}
}
}
class Text {
private $Foo;
function Bar() {
$Fooo = $this->Foo;
if ($Fooo == "Bar" || $Fooo == "Foo") {
return $Fooo;
}
}
}
Which way is better,faster,more secure?
Thanks!