This is my first php program!


Assignment with operation



Download 6,9 Mb.
Pdf ko'rish
bet38/69
Sana26.02.2022
Hajmi6,9 Mb.
#471647
1   ...   34   35   36   37   38   39   40   41   ...   69
Bog'liq
PHP

Assignment with operation
In addition to the basic assignment operator, there are several assignment operators
that are convenient shorthand. These operators consist of a binary operator fol-
lowed directly by an equals sign, and their effect is the same as performing the opera-
tion with the operands, then assigning the resulting value to the lefthand operand.
These assignment operators are:
Plus-equals (
+=
)
Adds the righthand operand to the value of the lefthand operand, then assigns
the result to the lefthand operand.
$a += 5
is the same as
$a = $a + 5
.
Minus-equals (–
=
)
Subtracts the righthand operand from the value of the lefthand operand, then
assigns the result to the lefthand operand.
Divide-equals (
/=
)
Divides the value of the lefthand operand by the righthand operand, then assigns
the result to the lefthand operand.
Multiply-equals (
*=
)
Multiplies the righthand operand with the value of the lefthand operand, then
assigns the result to the lefthand operand.
Modulus-equals (
%=
)
Performs the modulus operation on the value of the lefthand operand and the
righthand operand, then assigns the result to the lefthand operand.
Bitwise-XOR-equals (
^=
)
Performs a bitwise XOR on the lefthand and righthand operands, then assigns
the result to the lefthand operand.
Bitwise-AND-equals (
&=
)
Performs a bitwise AND on the value of the lefthand operand and the righthand
operand, then assigns the result to the lefthand operand.
,ch02.15294 Page 45 Wednesday, March 13, 2002 11:42 AM


This is the Title of the Book, eMatter Edition
Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

Download 6,9 Mb.

Do'stlaringiz bilan baham:
1   ...   34   35   36   37   38   39   40   41   ...   69




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish