Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7581641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:14:47+00:00 2026-05-30T18:14:47+00:00

How to isolate specific hyperlinks from a website(using simple html dom php). for example

  • 0

How to isolate specific hyperlinks from a website(using simple html dom php). for example below script were i want only the link which have the bolded path with http://www.website.com/release/…

<a class="blue" href="/releases/2012.htm">release of ---</a>
<a class="blue" href="/releases/1/2012.htm">release of ---</a>

and links which has a subdomain (news) in it

 <a class="blue" href="http://news.website.com/one/1">release of ---</a>

and also is there any way to isolate a specific link from a website and go inside that specific link and fetch its title and description

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:14:48+00:00Added an answer on May 30, 2026 at 6:14 pm

    Normally you’d just iterate over all of the links, checking to see if each one matches your conditions, and if so, grab the data you want from it.

    foreach($html->find('a') as $link) {
        if(substr($link->href, 0, 10) == "/releases/") {
            // do stuff with a releases link
        }
    
        // and so on
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to isolate all my code from the IoC container library that I
i'm trying to isolate all the server names (i.e sv012-cali) from within an html
I'm trying to isolate a specific field in a SQL dump file so I
I need to isolate user-written code snippets from each other in javascript. For now
In the following example (apologies for the length) I have tried to isolate some
Given an HTML link like <a href=urltxt class=someclass close=true>texttxt</a> how can I isolate the
This stems from a related discussion, How to subtract specific elements in a list
How do you isolate a performance issue to a specific component of the application
I've got a script that searches through a logfile for a specific trigger, and
I have a chunk of HTML I need to pull a word from. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.