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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:30:49+00:00 2026-05-23T11:30:49+00:00

When writing the syntax for an associative array in PHP we do the following

  • 0

When writing the syntax for an associative array in PHP we do the following

$a = array('foo' => 'bar');

I am curious of the relationship of the => syntax, or possibly operator. Does this relate to some kind of reference used in the hash table in ZE, or some kind of subsequent right shift or reference used in C? I guess I am just wondering the true underlying purpose of this syntax, how it relates to ZE and/or php extensions used to handle arrays, how it possibly relates to the written function in C before compiled, or If I just have no idea what I am talking about 🙂

  • 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-23T11:30:50+00:00Added an answer on May 23, 2026 at 11:30 am

    The => symbol a.k.a. T_DOUBLE_ARROW is just a parser token like class, || or ::.

    See: The list of php parser tokens

    It’s nothing special apart from that fact that "it looks like an arrow" and it is used for "array stuff".

    Of course the exact usage is more complicated than that but "array stuff" is the short inaccurate description that should do it.

    It’s used to represent key => (points to) value

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

Sidebar

Related Questions

Would there a more elegant way of writing the following syntax? Thread t0 =
I am writing a simple batch file and i get this The syntax of
Whats this syntax useful for : function(String... args) Is this same as writing function(String[]
Can anyone tell me if writing a query in the following tsql syntax is
I'm writing a Ruby code box with syntax highlighting (for Ruby) written in php
I'm writing Multimarkdown tables following the guidelines under the Table section in the syntax
I'm writing a python script that uses this awkward glob syntax. import glob F
I'm writing a parser for a scripting programming language in PHP. The syntax of
I'm bored, on writing C# code on .ascx, to use this syntax : <%
Is the syntax for writing regular expression standardized? That is, if I write 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.