Deutsch
Germany.ruФорумы → Архив Досок→ Программирование

Объйсните как работает этот цикл?

06.05.13 21:30
Re: Объйсните как работает этот цикл?
 
compman знакомое лицо
compman
в ответ asig 05.05.13 23:28, Последний раз изменено 06.05.13 21:33 (compman)

Predecrement:
Decrement operator by one before the variable is used. -- Prefix --$a
$a = 3;
echo --$a; // 2
Postdecrement:
Decrement operand by one after the variable is used. -- Postfix $a--
$a = 3;
echo $a--; // 3


 

Перейти на