$var=<a href="/abcd/100th-indian-science-congress">100th Indian Science Congress</a>;
In the above i just only want to concatinate "100th-indian-science-congress" so please help me to solve this kind of problem
$result = str_replace(" ", "-", $var);
preg_match ('/a href="(.*?)"/', $var, $matches);
The result should be in $matches[1];
<?php
$var= '<a href="/abcd/100th-indian-science-congress">100th Indian Science Congress</a>';
$url = preg_match('/<a href="(.+)">/', $var, $match);
$outcome = basename($match[1]);
?>
Outcome see: http://sandbox.onlinephpfunctions.com/code/b4eea464a27c02d97e7bdd42fa959ff12884de96