3
In the documentation of Pear, it sets a pattern for how to mount the structure of an array:
$some_array = array(
'foo' => 'bar',
'spam' => 'ham',
);
This way, which I already use, separates in a legible way the elements, but what about a array with say, 100 elements. The code will be very extensive, even so is correct?
Is this the only pattern to follow? There are other indications of how this structure should be organized?
With 100 elements it would be good to store it in the database.
– rray
It was just an assumption, @rray. But let’s say it’s an array containing settings to be saved or manipulated.
– Marcelo de Andrade