- preg_match_all: documentation ( source)
- str_replace: documentation ( source)
<?php
$icerik = '<a href="http://www.google.com" title="bu-link-google-gider" alt="deneme">Google</a>';
preg_match_all('#title="([^">]*)"#', $icerik, $out);
$title_degeri = $out[1][0];
echo "Orjinal TITLE : " . $title_degeri;
echo "<br>";
echo "Replace Edilmis TITLE : " . str_replace('-', ' ', $title_degeri);