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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:10:11+00:00 2026-05-17T02:10:11+00:00

I have a $GLOBALS[‘plugins’] array. With these values: Array ( [0] => Array (

  • 0

I have a $GLOBALS['plugins'] array. With these values:

Array
(
    [0] => Array
    (
        [0] => calendarFuncs/
        [1] => calendar.php 
        [2] => Calendar
    )
    [1] => Array
    ( 
        [0] => eventFuncs/ 
        [1] => todo.php 
        [2] => Projects
    )
    [2] => Array
    (
        [0] => financeFuncs/ 
        [1] => finance.php 
        [2] => Finances 
    )
    [3] => Array
    ( 
        [0] => crmFuncs/ 
        [1] => crm.php 
        [2] => CRM
    )
    [4] => Array
    ( 
        [0] => adminFuncs/ 
        [1] => admin.php 
        [2] => Admin
    )
)

This returns false, always…

in_array('Projects', $GLOBALS['plugins'])

Any thoughts?

Thank you.

  • 1 1 Answer
  • 3 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-17T02:10:11+00:00Added an answer on May 17, 2026 at 2:10 am

    in_array() doesn’t search recursively through multidimensional arrays.

    You could loop through the $GLOBALS['plugins'] array and do in_array() on each item inside instead.

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

Sidebar

Related Questions

I have PHP configured so that magic quotes are on and register globals are
Hoping someone can clear this up for me. Let's say I have 2 globals:
I have the following method in an App_Code/Globals.cs file: public static XmlDataSource getXmlSourceFromOrgid(int orgid)
I have the following code: <fx:Script> <![CDATA[ import shared.GlobalsManager; import app.Globals; protected var globals:Globals=GlobalsManager.getGlobals();
I have this form that pops up in a modal window like so: <?php
I have a particular php class that I want to be able to upload
I have a php script and i want to store some information in RAM.
I have an app config file which declares globals using DEFINE: define('BASE_DOMAIN', 'localhost/...'); define('BASE_URL',
Say I have a directory structure like so: /public /public/company /public/globals /public/globals/images /public/jobs /public/jobs/it
I have code like this: import runpy runpy.run_path('other.py', globals()) It works on my Windows

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.