Hi Guys I have a problem thats probably easy for someone who knows more than me on PHP, can someone please help me for 2 minutes?

|
2021-01-02 22:57:42
I didn’t do it on purpose
2021-01-02 22:57:49
but is there an alternative?
Vladimir_Yudin 2021-01-03 02:49:19
2021-01-02 22:57:49
but is there an alternative?

Use length instead count

2021-01-03 16:03:45
I need to help with php interpreter
2021-01-03 19:58:11
Vladimir_Yudin 2021-01-03 02:49:19
Use length instead count

How i use ‘length’ in this exemple please ?

andrewdanilov 2021-01-03 20:26:29
for($i=0; $i<strlen($row); $i++){ //incrementation
2021-01-03 23:20:21
my problem that it just doesn’t count the lines,
it takes the number of lines and multiplies it by the length of the line !!
andrewdanilov 2021-01-03 23:59:01
Your problem is in using cycle within a cycle. You need just one cycle iterating though lines. Inside cycle you split line in to two parts, where first is clock, second – in_out, what ever it meens.

Here you can use:
foreach($array as $row) {
$clock = substr($row, 0, 2);
$in_out = substr($row, 4, 1);
}
or:
for($i=0; $i<count($array); $i++) {
$clock = substr($array[$i], 0, 2);
$in_out = substr($array[$i], 4, 1);
}

My opinion – you do not anderstand what are you doing. Particularly – how cycles works and what you have in $array variable.

And as Stanislav said – you open the file twice. The first is redundant because after fopen() you need to fread(), but you don’t do that. file_get_contents() do all the work, than explode() splits string in array by line breaks.

2021-01-04 01:39:53
Pog
kylaksizov 2021-01-04 10:09:23
GrishaChasovskih 2020-08-18 09:35:42
The script resets JetBrains products trial period for Mac OS but keeps settings, logs and cache

enjoy 🙂

Нихрена он не сбрасывает, все так же по 30 минут дается

kylaksizov 2021-01-04 10:09:43
В итоге есть ключи?
kylaksizov 2021-01-04 11:05:08
Нашел решение.
Если переустанавливать, то все равно после новой установки дается 30 минут.
Устанавливаем старую версию phpstorm и затем снова удалем, ставим свежую. Вам снова дается 30 дней теста!
Vladimir_Yudin 2021-01-04 11:18:47
Дешевле ключ купить чем каждый месяц так трахаться
kylaksizov 2021-01-04 11:20:00
200$ за год, лучше уже 3 минуты на переустановку выделить.
Vladimir_Yudin 2021-01-04 11:31:37
kylaksizov 2021-01-04 11:20:00
200$ за год, лучше уже 3 минуты на переустановку выделить.

Это ты цены для организаций смотришь.

kylaksizov 2021-01-04 11:32:51
phpstormide-17860.jpg

Vladimir_Yudin 2021-01-04 11:33:43
Ну и? Наверху видишь Организациям?
kylaksizov 2021-01-04 11:35:15
Vladimir_Yudin 2021-01-04 11:33:43
Ну и? Наверху видишь Организациям?

Признаю, баран)

2021-01-05 06:32:09
andrewdanilov 2021-01-03 23:59:01
Your problem is in using cycle within a cycle. You need just one cycle iterating though lines. Inside cycle you split line in to two parts, where first is clock, second – in_out, what ever it meens.

Here you can use:
foreach($array as $row) {
$clock = substr($row, 0, 2);
$in_out = substr($row, 4, 1);
}
or:
for($i=0; $i<count($array); $i++) {
$clock = substr($array[$i], 0, 2);
$in_out = substr($array[$i], 4, 1);
}

My opinion – you do not anderstand what are you doing. Particularly – how cycles works and what you have in $array variable.

And as Stanislav said – you open the file twice. The first is redundant because after fopen() you need to fread(), but you don’t do that. file_get_contents() do all the work, than explode() splits string in array by line breaks.

thank you very much for enlightening me!

anonymous_1901 2021-01-05 19:33:19
Urgently need a developer who knows PHP and postbacks,callbacks I’m me it’s urgent I am hiring for a big project
ronnyhlg82 2021-01-05 20:00:08
anonymous_1901 2021-01-05 19:33:19
Urgently need a developer who knows PHP and postbacks,callbacks I’m me it’s urgent I am hiring for a big project

English is mandatory?

Ayayoyi 2021-01-08 08:52:07
https://quickref.me/php

PHP Cheat Sheet & Quick ReferenceQuickRef.ME
This PHP cheat sheet provides a reference for quickly looking up the correct syntax for the code you use most
dev1lroot 2021-01-08 15:53:57
ключи еще есть?
2021-01-10 15:04:36
@GrishaChasovskih у Вас в чатике спамеры появились)
GrishaChasovskih 2021-01-10 15:05:13
Дякую)
Nikolay_Grudinin 2021-01-11 10:17:35
Все, ключиков больше нет?
pablo_jani 2021-01-11 13:38:11
RSYen6winZ2OO93eyHv2Iw5kbn1dqfBw1BuTE29V2FJKicJSu8iEOpfoafwJISXmz1wnnWL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wi9NH71WRB0hqUoLI2AKKyiPw++FtN4Su1vsdDlrAzDj9ILjpjJKA1ImuVcG329/WTYIKysZ1CWK3zATg9BeCUPAV1pQy8ToXOq+
pablo_jani 2021-01-11 13:39:13
до 11 февраля
C 2021-01-12 00:52:42
Hi Guys I have a problem thats probably easy for someone who knows more than me on PHP, can someone please help me for 2 minutes ? much appreciated
C 2021-01-12 00:53:02
Its regarding Arrays
2021-01-12 07:00:49
C 2021-01-12 00:52:42
Hi Guys I have a problem thats probably easy for someone who knows more than me on PHP, can someone please help me for 2 minutes ? much appreciated

what’s ur doubt?

troyanVig 2021-01-13 16:46:16
народ как отменить автоподостанвку <php
troyanVig 2021-01-13 16:46:33
мне нужны именно шорт теги, а то что подствляет – неудобно
andrewdanilov 2021-01-13 16:49:21
phpstormide-17903.jpg

|