Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

Labdien!
Vai var kāds dot padomu kā apvienot skaitļus, jeb uztaisīt tos īsākus piemēram ir masīvs, kurā ir  
array(1) { [0]=> "1" [1]=> "2" [2]=> "3" [3]=> "4" }
Jautājums kā ciklā aiztāt šos skaitļus piemēram 1.-4. nevis 1, 2, 3, 4. attiecīgi mazāko un lielāko. piemēram ja 
array(2) { [0]=> "4" [1]=> "5" }
ir 4 un 5 tad 4.-5.

Edited by Newbie
Posted

izklausas pec array_map vai ari array_replace_recursive ir daudz vel citi veidi ka to atrisinat atkarigs no zinasanam ka velas to risinat.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...