PHP/Data Structure/compact
Версия от 10:37, 26 мая 2010; (обсуждение)
Compact variables
<?php
$S= "Cylinder";
$N= "Rectangle";
$A= "Sphere";
$O= "Sphere";
$P= "Rectangle";
$shapes = compact("S", "N", "A", "O", "P");
var_dump($shapes);
?>
<?php
$S= "Cylinder";
$N= "Rectangle";
$A= "Sphere";
$O= "Sphere";
$P= "Rectangle";
$shapes = compact("S", "N", "A", "O", "P");
var_dump($shapes);
?>