What does a $$$ mean in PHP?
What does a $$$ mean in PHP?
In PHP, the use of multiple dollar signs ($$) is known as a "variable variable". It is a way to create a variable whose name is determined by the value of another variable.
Here's how it works:
The first $ is used to define a variable, just like in a regular variable assignment.
The second $ is used to indicate that the value of the variable should be treated as a variable name.
If there are more than two $ signs (e.g., $$$), it means that the value of the variable is a variable that contains another variable name.
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.