Habr
β
How to become an author
My feed
All streams
Development
Admin
Design
Management
Marketing
PopSci
Search
Write a publication
Settings
Login
Pull to refresh
0
0
Сергей
@zlucan
Пользователь
Follow
Send message
Profile
Publications
Comments
1
Bookmarks
More
Dropdown
Followers
Following
Copy RSS link
PHP-Дайджест № 118 – свежие новости, материалы и инструменты (24 сентября – 9 октября 2017)
zlucan
Oct 9 2017 at 18:27
function fn(int $x) {
$c = new C;
$c->i = 1;
if ($x) {
$a = [1, 2, 3];
} else {
$a = [3, 2, 1];
}
return $a[$c->i];
$c->i++;
return $x;
}
Это кусок же никогда не отработает
$c->i++;
return $x;
Information
Rating
Does not participate
Location
Фаниполь, Минская обл., Беларусь
Registered
August 24 2014
Activity
July 26 2019 at 09:49
$c = new C;
$c->i = 1;
if ($x) {
$a = [1, 2, 3];
} else {
$a = [3, 2, 1];
}
return $a[$c->i];
$c->i++;
return $x;
}
Это кусок же никогда не отработает
$c->i++;
return $x;