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 6585499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:40:16+00:00 2026-05-25T16:40:16+00:00

I am using PHP Simple HTML DOM Parser and there is a section in

  • 0

I am using PHP Simple HTML DOM Parser and there is a section in the html page with the following source:

<div class="box-content padding-top-1 padding-bottom-1 font-size-3">
    <ul>
        <li>
            <a href="link1">linkdescription 1</a>
        </li>
        <li>
            <a href="link2">linkdescription 2</a>
        </li>
    </ul>
</div>

How can I now get the list of links with using the stacked class identifier?

Here’s what I’ve currently tried:

  • List item $html->find('.box-content padding-top-1 padding-bottom-1 font-size-3'));
    • returns empty
  • List item $html->find('.box-content'));
    • returns other page elements in a box
  • List item $html->find('.box-content+padding-top-1+padding-bottom-1+font-size-3'));
    • never mind 🙁
  • 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-25T16:40:17+00:00Added an answer on May 25, 2026 at 4:40 pm

    Or you can try this:

    List item $html->find('div[class=box-content padding-top-1 padding-bottom-1 font-size-3]');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm hoping someone can help me. I'm using PHP Simple HTML DOM Parser (http://simplehtmldom.sourceforge.net/manual.htm)
I'm using the PHP simple DOM parser for filling an HTML template; it seems
I'm trying to get the content of a webpage that require authentication using PHP.
I am doing some screen scraping work at the moment using PHP and Simple
i am still stucked in screen scraping problem... link : screen scraping in php
Google News has API, described here: http://code.google.com/apis/newssearch/v1/index.html But it is a JavaScript API (client
Using: http://simplehtmldom.sourceforge.net/ I'm comparing prices of pretty much the same products of different brands.
I'm using: http://simplehtmldom.sourceforge.net/ and noticed that in the examples, and trying to scrape certain
First things first, I'd like to make sure the below is the right way
Thanks for taking the time to read my post... I'm trying to extract some

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.