Merhaba arkadaşlar. PHP de bir kod ile başlıktaki kelimeleri virgüllerle ayırıp keywords a ekleniyor.

Örneğin başlık şöyle: Başlığı virgüllerle ayırıp keywords a eklemek

Kod ile bu başlık şu hale geliyor:

Başlığı,virgüllerle,ayırıp,keywords,a,eklemek

Kod:

$stop_words=  array("I "," a "," about "," an "," are "," as "," at "," be "," by "," com "," de "," en "," for "," from "," how ","How "," in "," is"," it "," la "," of "," on "," or ","Or "," that "," the ","The "," this "," to "," was "," what "," when "," where "," who ","Who "," will "," with "," und "," the "," www ","!",".","?","=","-");
        $keywords_ = str_replace($stop_words," ",$context['page_title']);
        $keywords_ =  preg_replace ( "/ss+/" , " " , $keywords_);
        $keywords_ = str_replace(" ",", ",trim($keywords_));
<meta name="keywords" content="'.$keywords_.'" />
Bunu ASP'de nasıl yapabiliriz acaba ?

Teşekkürler şimdiden.