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

  • SEARCH
  • Home
  • 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 6021965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:47:25+00:00 2026-05-23T03:47:25+00:00

Ok I have about 12 pages included in a php page that look like

  • 0

Ok I have about 12 pages included in a php page that look like this:

<a name="1"> </a>
<h2>Unit 1: Awareness of employment in the creative media sector</h2>
<p />
<h3> Learning outcomes:</h3>
<ul class="outcomes">
<li class="n1">Know about employment status in the Creative Media sector</li>
<li class="n2">Understand the Creative Media employment market place</li>
<li class="n3">Be able to promote self</li>
</ul>
<hr />
<ul class="files">

I want to be able to store the contents of the li’s in an array, so I want to find grab the contents of each li within an ul with the class “outcomes” and push to array.

Is this possible? I have heard of Xpath but it looks like jibberish to me, can anyone explain this more simply with some straightforward php or push me in the right direction for xpathing this?

Thanks.

  • 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-23T03:47:25+00:00Added an answer on May 23, 2026 at 3:47 am

    I would suggest using a PHP DOM parser such as this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing a web application that have about 6-12 pages. On each one
I was just wondering about something. I have a frame that loads pages and
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
The site should look like this . But I'm using PHP include (as I
Let's assume that we have a PHP class Page , which generates PHP Page
I have a website that has an index.php, a few simple .html pages and
I have a website set up that uses a custom 404 error page. This
I'm just about ready to cry. I have read the php.net manual page, tried
I have an application that has an included header file in each page. The
We have an application which has about 15000 pages. For better SEO reasons we

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.