Jump to content
php.lv forumi

Nepieciešams apvienot saliktos skaitļus


Newbie

Recommended Posts

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
Link to comment
Share on other sites

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...