1.a small cosmetics case with a mirror; to be carried in a woman's purse
2.a signed written agreement between two or more parties (nations) to perform some action
3.a small and economical car
4.closely and firmly united or packed together;
compact soil
5.closely crowded together;
a compact shopping center
6.heavy and compact in form or stature;
a wrestler of compact build
7.briefly giving the gist of something;
a short and compendious book
1.have the property of being packable or compactable or of compacting easily;
This powder compacts easily
2.compress into a wad;
wad paper into the box
3.make more compact by or as if by pressing;
compress the data
4.squeeze or press together;
she compressed her lips
定義和用法 compact() 函數(shù)創(chuàng)建一個由參數(shù)所帶變量組成的數(shù)組。如果參數(shù)中存在數(shù)組,該數(shù)組中變量的值也會被獲取。 本函數(shù)返回的數(shù)組是一個關(guān)聯(lián)數(shù)組,鍵名為函數(shù)的參數(shù),鍵值為參數(shù)中變量的值。 本函數(shù)執(zhí)行的行為與 extract() 正好相反。語法 注釋和提示 注釋:任何沒有變量名與之對應(yīng)的字符串都被略過。 例子 1輸出: 例子 2 使用沒有對應(yīng)變量名的字符串,以及一個變量名數(shù)組: 輸出: