Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Ho to get a specific value from an array?

Hi, I am scraping a site to get its all url inside a div. I got multiple links from that div.

preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $table, $match);

print_r($match[0]);
Code (markup):
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] =>...
Code (markup):
Ho to get a specific value from an array?

from PHP https://ift.tt/2EYcGGk
via IFTTT

Post a Comment

0 Comments