Change values in arrays

Change values in arrays

Sunday 12 June 2005 5:07:44 pm - 1 reply

Author Message

Serg Tsay

Wednesday 15 June 2005 9:40:45 pm

I solve this problem, here solution:

1. Remove element that you want to change($index - element index):
{set myarray=$myarray|remove($index, 1)}
2. Insert new element at needed place:
{set myarray=$myarray|insert($index, $newvalue)}

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.