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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:59:39+00:00 2026-05-28T05:59:39+00:00

I have big content. get by file_get_content. It like this: <div class=nwsdetail> <div class=othernws>

  • 0

I have big content. get by file_get_content. It like this:

<div class="nwsdetail">


    <div class="othernws">
        <div class="ttlcate">
            Các tin đã đăng</div>
        <div class="items">

                <div class="nwsoitem">
                   <img width="9px" src="pic/web/icon/blue_bullet.gif" border="0" />  <a class="nwsottl" href='?u=nws&su=d&cid=10&id=53948'>
                        Những con số thống kê Internet của năm 2010 và 2011
                    </a>

                    </div>

                    <div class="sepothernws">
                    </div>

                <div class="nwsoitem">
                   <img width="9px" src="pic/web/icon/blue_bullet.gif" border="0" />  <a class="nwsottl" href='?u=nws&su=d&cid=10&id=53946'>
                        Ít giám đốc tiếp thị biết khai thác sức mạnh thông tin số
                    </a>
                    </div>

                    <div class="sepothernws">

                    </div>

                <div class="nwsoitem">
                   <img width="9px" src="pic/web/icon/blue_bullet.gif" border="0" />  <a class="nwsottl" href='?u=nws&su=d&cid=10&id=53943'>
                        Dùng gói SMS nội mạng MobiFone, nhận khuyến mại tiền tỷ 
                    </a>
                    </div>

                    <div class="sepothernws">
                    </div>

                <div class="nwsoitem">

                   <img width="9px" src="pic/web/icon/blue_bullet.gif" border="0" />  <a class="nwsottl" href='?u=nws&su=d&cid=10&id=53936'>
                        CIO đầu tiên của Chính phủ Mỹ gia nhập Salesforce 
                    </a>
                    </div>

                    <div class="sepothernws">
                    </div>

                <div class="nwsoitem">
                   <img width="9px" src="pic/web/icon/blue_bullet.gif" border="0" />  <a class="nwsottl" href='?u=nws&su=d&cid=10&id=53934'>

                        Symantec thâu tóm LiveOffice
                    </a>
                    </div>

        </div>
    </div>
</div>

In this content have some images url and now I want put all images url from this content into array image url

please guide me. thanks you very much.

  • 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-28T05:59:40+00:00Added an answer on May 28, 2026 at 5:59 am

    You can use preg_match_all to filter through the content and create an array that contains all of the img tag’s src values.

    $input = "your html from file_get_contents";
    preg_match_all('/<img[^>]+>/i',$input, $result); 
    
    $images = array();
    foreach( $result as $image)
    {
        preg_match_all('/src=("[^"]*")/i',$image, $images[$img_tag]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to get some effects when content is changing. Here is my jquery-code:
I have an xml file which I imported in my html page like this:
I have a big problem with .htaccess rewrite rule, my code is this: <IfModule
I have a big class. To sum up, it has only one method that
I have this Perl/CGI to upload files and get the uploaded file size while
I cannot seem to get this to work. I have a small JS file
In my objective c class, I'd like to sort an array like this: NSArray
well, i have a big file, there are some contents i needed to be
I have big system that make my system crash hard. When I boot up,
I have big URL list, which I have to download in parallel and check

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.