ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Adel Ezat Fawzy Ellozy , Webdeveloper. , Saudi Arabian Maritiem Sports Federation
تاريخ النشر: 2017/03/11
Nabil Rageh
من قبل 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
من قبل Ali Imran Ahmad , Frontend Web Developer , SheenSol Technologies

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

Muhammad Muzafar Shah
من قبل 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

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟