php

Give me reason to code! plz…

It’s drama when you don’t know what to do!
This is simple story, I would like to receive some tasks to re-fresh my programming skills. I’m looking for motivation to workout.
It would be great exchange – you give me the tasks and I return results for you! Are you interested?
I can do some HTML, CSS, JavaScript, have done some PHP & MySQL development.
I can’t give you strong garantee, because just re-freshing my skills and participating in programming.
Just for fun I did anouncement for Cycling event and “installed” syntax highlighter to depict source code.
I have my learning environment on bute.co.nf! Probably that will be the place you will see the results 😉
Please, give me reason to code! plz….

Advertisements

2.uzdevums

Задание 2 – ranges2numbersarr
Необходимо написать функцию, которая переделает строку диапазонов номеров в массив номеров, попадающих в диапазоны.

Входные параметры(строка):
7676;7700-7702;7705;7707;771-772;7760-7764;7777

Результат(массив номеров):
[
7676, 7700, 7701, 7702, 7705, 7707,
771, 772, 7760, 7761, 7762, 7763, 7764, 7777,
] (vairāk…)

1.uzdevums

Необходимо написать функцию, которая переделает входной массив номеров в номерные диапазоны.

Входные параметры(массив номеров):
[
1191, 1195, 1196, 1199, 1201, 1202, 1203, 1205, 1206, 1207, 1208, 1209, 1210,
1212, 1213, 1214, 1215, 1216, 1217, 1218, 1219, 1224, 1225, 1228, 1229, 1231,
1234, 1239, 1240, 1248, 1251, 1252, 1253, 1254, 1256, 1260, 1262, 1267, 1269,
1270, 1276, 1281, 1301, 1302, 1303, 1304, 1305, 1307, 1308, 1309, 1310, 1312,
1313, 1314, 1315, 1316, 1317, 1318, 1319, 1320, 1321, 1323, 1325, 1330, 1331,
1334, 1336, 1337, 1339, 1347
]

Результат(строка):
1191; 1195-1196; 1199; 1201-1203; 1205-1210; 1212-1219; 1224-1225; 1228-1229; 1231;
1234; 1239-1240; 1248; 1251-1254; 1256; 1260; 1262; 1267; 1269-1270; 1276; 1281;
1301-1305; 1307-1310; 1312-1321; 1323; 1325; 1330-1331; 1334; 1336-1337; 1339; 1347

(vairāk…)