preg_match_all('#bhttps?://(^,s()<>)+(?:((wd)+)|((^,(:punct:)s)|/))#', $table, $match); print_r($match(0));
I got all links in an array. The print_r function contains the data like following. (it don’t display in my page but in source code)
Array ( (0) => https://aaaa.com/wp-content/themes/jnews/assets/img/jeg-empty.png (1) => https://aaaa.com/wp-content/uploads/2020/10/NF-100-3-750x394.jpg (2) => https://aaaa.com/wp-content/uploads/2020/10/NF-100-3-750x394.jpg (3) => https://aaaa.com/wp-content/uploads/2020/10/NF-100-3-300x158.jpg (4) => https://aaaa.com/wp-content/uploads/2020/10/NF-100-3-1024x538.jpg (5) => https://aaaa.com/wp-content/uploads/2020/10/NF-100-3-768x403.jpg )
I need only the second link in variable so that I can use it in my php code.
But how can I will take the second link from the array?