Cursos
Iniciar sesiónComenzar a aprender IA
Cursos
Iniciar sesiónComenzar a aprender IA
+ 5

Why --$y has no effect on char or string?

$y = 'a'; --$y; echo $y; //output: a

php
15th Jun 2017, 2:46 AM
Nafis
Nafis - avatar
2 Respuestas
+ 2
Character variables in php can only be incremented and not decremented. http://php.net/manual/en/language.operators.increment.php
15th Jun 2017, 3:18 AM
ChaoticDawg
ChaoticDawg - avatar
0
only +++ cannot --character in php
17th Jun 2017, 8:31 AM
Waseem

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
How many time I can use sololearn trial mode?
2 Votes
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Sololearn course
1 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Bug sur le deuxième cours de python
1 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes