Alıntı
<meta name="keywords" content="x,y,z" />
böle dostum
Fonksiyon kullanımı 1. Metanin adi , 2. Verinin bulunduğu değişken
<?php
function MetaContent ($Name,$Data){
preg_match('#meta(.*?)name=(.*?)'.$Name.'(.*?)content="(.*?)"#si',$Data,$Content);
return $Content[4];
}
$data = '<meta name="keywords" content="x,y,z" />'; //Verinin depolandığı değişken
echo MetaContent('keywords',$data); //Fonksiyon kullanımı 1. Metanin adi , 2. Verinin bulunduğu değişken
?>//Output
x,y,z