PHP/Data Structure/compact

Материал из Web эксперт
Перейти к: навигация, поиск

Compact variables

   <source lang="html4strict">

<?php $S= "Cylinder"; $N= "Rectangle"; $A= "Sphere"; $O= "Sphere"; $P= "Rectangle"; $shapes = compact("S", "N", "A", "O", "P"); var_dump($shapes); ?>

 </source>