- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$str = "<a href='http://www.akkikhambhata.wordpress.com' title='this is wordpress blog' alt='hello'>Akki Khambhata</a>";
preg_match_all('/<a .*?>(.*?)<\/a>/',$str,$matches);
print_r($matches);