preg_match not working we want to choose second title but it choose 1. |
Title tag use in same page one is button tag other is p tag button tag is first title="watch later" other on a href tag title we want to import second a href tag title
source code ![]() ![]() [img]hhttps://i.imgur.com/AUrk0j7.png[/img] ![]() i have tried many things to change /title but it import title is "watch later" i want second title import //Title if(preg_match('/title="(.*?)"/', $match, $matches_title)) { $video['title'] = htmlspecialchars_decode(strip_tags(stripslashes($matches_title[1])), ENT_QUOTES); } else { $this->errors[] = 'Failed to get video title for '.$video['url'].'!'; if (!$this->debug) continue; else $debug_e[] = 'TITLE'; } how to choose second title under a tag ? i want to remove watch later title . |
Messages In This Thread |
preg_match not working we want to choose second title but it choose 1. - by aditya5670 - 06-14-2019, 04:39 AM
RE: preg_match not working we want to choose second title but it choose 1. - by donpwinston - 06-14-2019, 07:01 AM
RE: preg_match not working we want to choose second title but it choose 1. - by includebeer - 06-14-2019, 12:13 PM
RE: preg_match not working we want to choose second title but it choose 1. - by jreklund - 06-15-2019, 10:59 AM
|