Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are the uses of PHP functions (compact and extract ) ?

user-image
Question ajoutée par Adel Ezat Fawzy Ellozy , Webdeveloper. , Saudi Arabian Maritiem Sports Federation
Date de publication: 2017/03/11
Nabil Rageh
par Nabil Rageh , Technical Support Manager , DenTech for communication and Information Technology

-The compact() function creates an array from variables and their values

The extract() function imports variables into the local symbol table from an array

Ali Imran Ahmad
par Ali Imran Ahmad , Frontend Web Developer , SheenSol Technologies

compact create array from local variables while extract creates local variables from array.

Muhammad Muzafar Shah
par Muhammad Muzafar Shah , MIS Manager (Management Information Systems Manager) , USAID Citizen's Voice Project

compact: Create array containing variables and their values

And

extract:  Import variables into the current symbol table from an array

More Questions Like This