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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:06:03+00:00 2026-06-10T13:06:03+00:00

I am learning the source codes of a micro MVC framework (Slim), and confusing

  • 0

I am learning the source codes of a micro MVC framework (Slim), and confusing about the codes below: (https://github.com/codeguy/Slim/blob/master/Slim/Slim.php line 158)

$this->middleware = array($this);

I’ve never seen the syntax before, and wondering what does array($this) mean.

And at line 1094:

$this->middleware[0]->call();

But I noticed that this Class Slim{} doesn’t implement an ArrayAccess interface, so how can it be accessed by index?

I’ve searched in the PHP manual page (http://www.php.net/manual/en/function.array.php) but found nothing. So I turning to here for help, thanks!

  • 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-10T13:06:05+00:00Added an answer on June 10, 2026 at 1:06 pm

    It’s simply creates an array with one object element.

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

Sidebar

Related Questions

I am learning about the conversion of source code to machine code via the
I am learning network programming through the sample source codes from this link http://cs.baylor.edu/~donahoo/practical/CSockets/textcode.html
This question relates to https://stackoverflow.com/questions/9603/what-is-some-great-source-code-to-read which compiles a list of great (in the sense
I'm interested in learning about the available choices of high-quality, stand-alone source code formatters
I am new to open source and git. I have been learning git and
I have been learning about Delegation and Data Sources for iOS programming and need
I'm learning dhtml using google's sample http://code.google.com/edu/ajax/tutorials/samples/dhtmltest.html however, when i add below doctype dtd
I just started learning Java and I'm confused about the topic of platform independence.
Just curious to know if anyone has ever used gametutorials.com products for learning directX.
I am following the Nerd Dinner tutorial as I'm learning ASP.NET MVC, and I

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.