Ben bir örnek ile bu göstermeye çalışacağım:
class DogShelter
{
private $dog;
public function handleDogDirect( )
{
$this->dog = trim( $this->dog );
$this->dog = rtrim( $this->dog, 'abc' );
$this->dog = strtolower( $this->dog );
$this->dog = basename( $this->dog );
}
public function handleDogIndirect( )
{
$dog = $this->dog;
$dog = trim( $dog );
$dog = rtrim( $dog, 'abc' );
$dog = strtolower( $dog );
$dog = basename( $dog );
$this->dog = $dog;
}
}
Farklı durumlarda daha iyi işlev hangisi - handleDogDirect veya handleDogIndirect?
- Neden?
- Hangisi muhtemelen daha hızlı?
- Hangisini kullanmalıyım?
By the way:
Since the rep recalc, I can't login with my OpenID from wordpress anymore. It keeps saying No OpenID endpoint found.. I would really appreciate any help.