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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:57:39+00:00 2026-06-15T00:57:39+00:00

I am wanting to check if there is data present in an array of

  • 0

I am wanting to check if there is data present in an array of data so that I can preform a function. Would I just use in_array?

Array:

["OpenHomes"]=>
array(2) {
  [0]=>
  array(2) {
    ["Start"]=>
    string(21) "/Date(1354323600000)/"
    ["End"]=>
    string(21) "/Date(1354326300000)/"
  }

Would I just do the following?

if(in_array($detail['OpenHomes']))
{
    echo 'yes';
}else{
    echo 'no';
}

I am wanting to check if there is anything present within OpenHomes.

  • 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-06-15T00:57:40+00:00Added an answer on June 15, 2026 at 12:57 am

    try this

    if(!empty($detail) && in_array('OpenHomes',$detail))
    {
        echo 'yes';
    }else{
          echo 'no';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way you can push data to a page rather than checking
I am wanting to check if input fields have the attribute required. If these
Is there any way to check how many threads are waiting for a synchronized
So this all stemmed from not wanting to check each POST in a huge
I am wanting to create a VB.Net app that checks a database and then
I have a form that a user would fill out while creating a ticket
Currently I have a servlet based application that retrieves data from an archived database
I have some kind of problem and I can't check this at home if
I have android app that talks to server and syncs some data int SQLite
Greetings. I have an RDLC file and am wanting to add a data source

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.