I have already declared a function to revers whole sentence:
private $error;
private $length;
private $string = "";
private $array = array();
private $index = 0;
private $indexOf = false;
private $word;
private $str;
public function __construct($string="") {
$this->string = $string;
}
public function revers_sentence() {
$this->string = strrev($this->string);
return $this;
}
... Ama nasıl bir cümlenin ilk kelimesinde harfi revers bir sınıf işlev bildirmek için?
public function revers_1_word() { hmm ? }
Lütfen Yardım. Thx