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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:29:49+00:00 2026-05-22T01:29:49+00:00

existingReports[$i] = count(array_walk(file_exists,$data[‘reports’][$i])); Is something wrong with this statement? For example print_r($filename[3]); [0] =>

  • 0
existingReports[$i] 
= count(array_walk(file_exists,$data['reports'][$i])); 

Is something wrong with this statement?

For example

print_r($filename[3]);

[0] => uploads/2011-05-10%20Philippines%20Philippine%20storm%2022%20dead.pdf 

[1] => uploads/2011-05-10%20Philippines%20Philippine%20storm%2022%20dead.pdf 

[2] => uploads/2011-05-10%20Philippines%20Philippine%20storm%2022%20dead.pdf 

[3] => uploads/2011-05-12%20Philippines%20Nestle%20noodles.jpg 

[4] => uploads/2011-05-12%20Philippines%20Nestle%20noodles.jpg 

[5] => uploads/2011-05-12%20Philippines%20Nestle%20noodles.jpg 

[6] => uploads/2011-05-13%20Algeria%20TESTTEST 

Obviously I am checking to see which of those reports exists, I will also need to dedupe them now that I am looking at this.

  • 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-22T01:29:50+00:00Added an answer on May 22, 2026 at 1:29 am

    You probably want to use array_map array_filter here instead:

    = count(array_filter($data['reports'][$i], "file_exists"));
    

    Of course, the first parameter still needs to contain an array. If it matches your example output of print_r($filename[3]); it should work however.

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

Sidebar

Related Questions

I am designing a new report using oracle reports builder that comes with 10g.
I have a method that takes an System.Action, this is what I'm trying to
I am working on a SharePoint application where the data is kept in lists.
Working with Crystal Reports over a multiple database environment. In the past reports have
I've lost my Reporting Services project file for Business Intelligence Development Studio. How can
We are considering migrating to Sql Server 2005 Reporting Services. Many of our existing
Is it possible in reporting services to populate a parameter based on a value
I'd like to re-host the Visual Studio Report Designer in my own application so
I am trying to perform a fair comparison of XenServer vs ESX and one
Context I am actually working on a project where I need to compose a

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.