Jump to content

Array_Merge() - Solved With Thanks


niche

Recommended Posts

My code depends on the info in the array called $decision_point_beginning to be at the beginning of the array called $decision_point. Will this code: array_merge($decision_point_beginning,$decision_point); consistently append $decision_point_beginning at the beginning of $decision_point ?

Link to comment
Share on other sites

why not unshift?http://www.php.net/manual/en/function.array-unshift.php but yes, i believe technically that other way would work too, however be aware of the changes between php 4 and 5, and conflicts between keys.http://www.php.net/manual/en/function.array-merge.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...