We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, when iterating over an array, the indexes are not kept:
$someArray = array(3=>"Three", 1=>'One',0=>'Zero Mostel', 2=>'Two');
If you're now iterating the array like this:
{% for key,value in someArray %} {{key}}: {{value}}<br /> {% endfor %}
you get the following:
0: Three 1: One 2: Zero Mostel 3: Two
while this is expected:
3: Three 1: One 0: Zero Mostel 2: Two
Maybe using sort() instead of asort() somewhere?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
when iterating over an array, the indexes are not kept:
If you're now iterating the array like this:
you get the following:
while this is expected:
Maybe using sort() instead of asort() somewhere?
The text was updated successfully, but these errors were encountered: