What is the use of php compact function?



What is the use of php compact function?..

Answer / Mukund Hans

The PHP compact() function takes an associative array or any variable containing one or more variables and creates a new associative array by removing all elements with a null value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

What is the latest version of laravel?

1 Answers  


Explain how to share sites with external world on valet?

1 Answers  


What are redirect responses?

1 Answers  


What is meant by Attaching Headers ?

2 Answers  


what is Basic Routing ?

2 Answers  


How to clear complete cache in laravel?

1 Answers  


What is vagrantfile and homestead.yaml?

1 Answers  


Explain request life cycle of laravel.

1 Answers  


Explain laravel echo.

1 Answers  


What is stack channel?

1 Answers  


How to upgrade valet to valet 2.0?

1 Answers  


By default valet serve your app on which tld? How to configure it to use another domain?

1 Answers  


Categories