adspace


What is the difference between array_map () and array_shift ()?

Answer Posted / Ashmita Tiwari

array_map() in PHP applies a user-defined function to every element of an array, creating a new array. On the other hand, array_shift() removes the first element from an array and returns it, while modifying the original array.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a web form?

1116


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2181


Write a program using while loop?

1128


What is trait in php?

1072


What sized websites have you worked on in the past?

1092


Which variable declarations within a class is invalid in php?

1052


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1082


List some features of php that are deprecated in php7?

1026


sort term descripttion form, report and uery

2257


What is the current stable version of php? What advance thing in php7?

1100


Name and explain five of the PHP error constants?

1043


What is the current stable version of php?

1130


What does $_files means?

1170


how to detect a mobile device using php

1177


What is the difference between htmlentities() and htmlspecialchars()?

1100