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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:42:53+00:00 2026-05-26T15:42:53+00:00

i am parsing a xml api using curl. the curl provides an array and

  • 0

i am parsing a xml api using curl. the curl provides an array and i fetch it using foreach loop but most of the time i get array like below which is not fetched by foreach loop. the array is like below

  array(
     [0]=>
      )

so how to check if the array is null so that the foreach has not to fetch the null array. i mean which (if()) condition should i use.

the another problem is that why curl gives empty array most of the time. what is the problem. i am working on localhost and the api is called from remote server. please help me.

  • 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-26T15:42:54+00:00Added an answer on May 26, 2026 at 3:42 pm

    empty()

    ie

    $test = “”;

    if (empty($test))
    {
    echo “true”
    }

    would return true

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

Sidebar

Related Questions

I'm parsing XML results from an API call using PHP and xpath. $dom =
this is my first time using StAX for parsing XML documents (still in the
I'm currently using JDOM for doing some simple XML parsing, and it seems like
I am parsing an XML API response with HTMLAgilityPack. I am able to select
I am parsing XML with an XMLReader using a XMLReaderSettings object with the event
I am looking to create an expression tree by parsing xml using C#. The
Using the API, trying to get items in a specific feed returns this: {direction:ltr,id:feed/
I am new to iPhone/Objective-C development, I am successfully parsing XML with NSXMLParser but
Xml parsing api is throwing sax parse exception, If i try to parse a
Is there a simple method of parsing XML files in C#? If so, what?

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.