Aşağıdaki kodu İzle:
$a = 'Test';
echo ++$a;
Bu irade çıktı:
Tesu
Soru, neden?
Ben "u" "t" peşinde olduğunu biliyorum, ama neden "1" yazmıyor??
EDIT: nedeniyle bu derste Zend kitaplar aşağıdaki öğretmek:
Also, the variable being incremented or decremented will be converted to the appropriate numeric data type—thus, the following code will return 1, because the string Test is first converted to the integer number 0, and then incremented.