smarty Posted September 22, 2005 Report Share Posted September 22, 2005 Kaa visvienkaarshaak paariet no asociatiiva massiiva uz parastu. tb no $arr = ( 0 => 'a', 1 => 'b', ); uz $arr = ('a', 'b'); Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 http://lv.php.net/manual/en/function.array-values.php Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 nope, array_values atgriezh arii asociatiivo massiivu Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 da ti če, appīpējies !? Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 es varbuut stulbs esmu? vai arii nemaaku lasiit array_values() returns all the values from the input array and indexes numerically the array. Example 1. array_values() example <?php $array = array("size" => "XL", "color" => "gold"); print_r(array_values($array)); ?> The above example will output: Array ( [0] => XL [1] => gold ) Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 laikam stulbs vai neapķērīgs... ... and indexes numerically the array Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 nu bljaaviens, man nevajag indexeetu!!! Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 vai iemācies "Datu struktūras"... RTU ir tāds kurss, ja kas... Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 nu bljaaviens, man nevajag indexeetu!!! 22901[/snapback] BĻĀ iemācies "Datu struktūras"!!!! Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 iipatneejs esi? ja nezini, tad neplaaties Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 vot tu, ja nezini.. neplāties.. Vismaz zini kas ir PHP-masīvs!? Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 tu stulbs esi vai izliecies? Link to comment Share on other sites More sharing options...
Delfins Posted September 22, 2005 Report Share Posted September 22, 2005 gy, vēlu veiksmi `parastā masīva` meklējumos.. Link to comment Share on other sites More sharing options...
smarty Posted September 22, 2005 Author Report Share Posted September 22, 2005 paldies, urod Link to comment Share on other sites More sharing options...
bubu Posted September 22, 2005 Report Share Posted September 22, 2005 muahahaha. smarty, nu tu gan esi jokupēteris! <?php print_r(array('a', 'b')); ?> Un outputs: Array ( [0] => a [1] => b ) Link to comment Share on other sites More sharing options...
Recommended Posts