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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.