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() 函數創建一個由參數所帶變量組成的數組。如果參數中存在數組,該數組中變量的值也會被獲取。 本函數返回的數組是一個關聯數組,鍵名為函數的參數,鍵值為參數中變量的值。 本函數執行的行為與 extract() 正好相反。語法 注釋和提示 注釋:任何沒有變量名與之對應的字符串都被略過。 例子 1輸出: 例子 2 使用沒有對應變量名的字符串,以及一個變量名數組: 輸出: