Merging and Partitioning Arrays

Once you have learned how to define, manage, and sort arrays, understanding how to merge and partition arrays is important because they enable you to slice and dice arrays to meet changing business needs. Merging arrays joins two or more arrays into a single array. Partitioning carves data from arrays. As in prior sections, first you will review the predefined functions that support merging and partitioning, and then you will explore some key examples applying the more frequently used functions. Table 6-5 captures the merging and partitioning predefined functions in alphabetic order.

Table 6-5. Predefined Merging and Partitioning Functions
FunctionDescription and Pattern
array_chunk()The function takes two formal ...

Get Oracle Database 10g Express Edition PHP Web Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.