Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add new array format support #10
added a commit
Dec 22, 2015
@fanphp Could you please test it? (Please try testing some cases if possible)
Now, It works inside of both array() and .
$array = ["foo" => "bar"]; $array[|]; // here
But I think that "=" is not used there. If you know the case using it, please let me know.
The following is valid:
$array1 = ["foo" == "bar"]; $array2 = ["foo" === "bar"];
So, I'll implement as the following:
New version is available: