fresh Posted October 1, 2004 Report Share Posted October 1, 2004 Savajdzeejaas lai no viena liela masiiva ciklaa vareetu atlasiit vajadziigaas veertiibas, katraa cikla izpildes reizee citas... Mana vairaacija bija panaakt to ar aptuveni shaadu domu: $a = 'suns' . $i; $txt = $txt . $array[$a]; ... Shis manis pasha izdomaatas variants nav straadaajoshs, bet kaa vareetu sho ideju paarveerst straadaajoshaa kodaa? Link to comment Share on other sites More sharing options...
o2T Posted October 1, 2004 Report Share Posted October 1, 2004 tam $txt tu gribi pielikt ljoti garu un bezjeedziigu slampu! es domaaju gan,ka nestraadaa :ph34: padomaa pats, ko tu meegjini izdariit ar shitaadu kodu! Link to comment Share on other sites More sharing options...
Roze Posted October 2, 2004 Report Share Posted October 2, 2004 Kaut kaa gauzhaam nesapratu ko tieshi vajag panaakt.. Nevar piedavaat algoritmu nezinot kas iisti ir jaapanaak - proti nezinot uzdevumu / esoshos ieejas datus un vajadziigo izejas rezultaatu. Bet nu mineetais piemeers ar nosacijumu ka eksistee masiivs $array ar elementu kura keys ir 'suns'.$i teoreetiski straadaa.. pie kam shii masiiva elementa veertiiba tiek kombineeta ar mainiigaa $txt veertibu .. Un nekaadas "slampas" nekur neveidojas.. Protams tas ir diezgan bezjeedziigs un varbuut var aizstaat ar implode, array_keys vai array_search vai kaadu citu.. Link to comment Share on other sites More sharing options...
fresh Posted October 2, 2004 Author Report Share Posted October 2, 2004 Mjjaa, sanaaca sarezhgjiiti paskaidrot, bet katraa zinjaa Roze manu domu uzveera! Ja tas straadaa,taatad kljuuda ir kaut kur citur... Anyway paldies! Link to comment Share on other sites More sharing options...
Recommended Posts