niche Posted December 19, 2011 Share Posted December 19, 2011 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 More sharing options...
thescientist Posted December 19, 2011 Share Posted December 19, 2011 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 More sharing options...
niche Posted December 20, 2011 Author Share Posted December 20, 2011 Thanks for the backup thescientist. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.