Wednesday, February 12, 2014


An array is a systematic arrangement of objects, usually in rows and columns.

I found interstate solution to work with arrays
<?php
$vars
['product']['price']=11;
$aa='product';$bb='price';

echo 
$vars{$aa}{$bb};
//prints 11?>
source: http://in1.php.net/manual/en/language.variables.php 


made by hand:

<?php


$vector = array ('hugo', 5);

print_r ($vector);


$vector['hugo'] +=3;
$vector['hugo'] +=3;
$vector['hugo'] +=3;

print_r ($vector);

 echo json_encode($vector);



No comments:

Post a Comment