Question:Difference between array_merge() and array_slice()?  

Answer Ans: The array_merge() function merges one or more arrays into one array. This function returns one array with the elements of all the parameter arrays.

The array_slice() function returns selected parts of an array. The array_slice() function returns part of an array as specified by the start and length parameters. If start is a positive number, it means that the ”slice” will start that many elements from the beginning of the array.

 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 576
Difference between array_merge() and array_slice()? 
Copyright © 2024. Powered by Intellect Software Ltd