Announcement

Collapse
No announcement yet.

using miva_array_insert

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    using miva_array_insert


    What I want is to accomplish a miva_array_push (the opposite of the existing miva_array_pop) but I don't see that miva_array_push exists in the docs. :-(

    The nearest thing I see is
    <mvt:assign name="g.return_value" value="miva_array_insert( array var, element, pos )" />
    SO? If I leave the pos off will it then push onto the end of the array?

    (edited: realized I posted this in the wrong forum area. moderator please move this)

    #2
    As usual at 4 in the morning... I figure it out.
    On mivascript.com the answer is set pos to -1 in order to push onto the end of the array.

    Comment

    Working...
    X