$array name = array ('key name' =>'value 1',…);
Is that the formula? But
('key name' = 'value 1',…);
Is n’t it good?
Should I remember it as such a rule?
Does that mean that "the value of that key name is 1" is not equal?
We look forward to your response.
Answer # 1
Is it impossible to abandon the idea of thinking in connection with the meaning of a sign?
If you can't think of it like that, then you can't move on.
If you can't accept the idea, you can create your own language.
Answer # 2
Is it better to remember this as a rule?
Isn't that "the value of the key name is 1" is not equal?
In many programming languages, = is an assignment,
It is different from the equal in mathematics.
In this case,
If 'key name' = 'value 1', it means that the value 1 is assigned to the key name, and the associative array breaks down.
Answer # 3
That's the rule.
In =, it becomes assignment.
Nothing is PHP specification.
The program works only as written.
- i want to group associative arrays by specified key in php
- i want to combine two associative arrays in php
- php - about laravel's associative array
- about php date function
- about php zend framework flashmessenger
- php - about mysql
- php - about @foreach in laravel's blade file
- i want to remove values that are not in the array in php from the associative array
- about php functions
- php - about the advantages/disadvantages and necessity of saving images in the database
- creating an associative array using php and variable names as keys
- php - laravel get information about the user who clicked
- php - about the speed of data transfer
- php - about centralized program management method in aws environment
- php - about array curly braces
- php - i want to display all database values in an associative array on the web
- php - about dockerfile
- [php] about the relationship between the number of select statements and the reading speed