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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:19:11+00:00 2026-05-13T18:19:11+00:00

I have a chunk of text like: <b>First content</b> followed by <b>second content</b> OR

  • 0

I have a chunk of text like:

<b>First content</b> followed by <b>second content</b>

OR

"First content" and then "second content"

And I want to create an array that looks:
[1] => “First content”
[2] => “second content”

From either example, where I get the content between two tags. I’ve figured out how to get the first instances, but can’t figure out the best way to make it recursive.

  • 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-13T18:19:12+00:00Added an answer on May 13, 2026 at 6:19 pm

    If you know what exactly is between “First content” and “second content”, use explode:

    http://php.net/manual/en/function.explode.php

    e.g.

    $values = explode("followed by", $yourtext);
    

    (use “strip_tags” on your array-elements if you just want the plaintext)

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

Sidebar

Related Questions

I have some data that looks like this. It comes in chunk of four.
So I have a text file called maze.txt that looks like this: ############### Sacbifnsdfweovw
I have this chunk of javascript that's kind of hacked around from http://www.developphp.com/view.php?tid=1248 and
I have a chunk of text like: Name=Long John Silver;Profession=cook;Hobby=Piracy And using the Boost::regex
I have searched the web but it looks like that it is not that
well i have to process a large chunk of text, analysing it linear from
I have got some markup that looks like this: <div class=button> <span class=image></span> <input
I have a chunk of javascript that users can copy and paste to put
So I have a chunk of code that declares some classes, creates data, uses
If I have a chunk of code like this: .hover( function () { hoverState($(#navbar

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.