This is my first php program!



Download 6,9 Mb.
Pdf ko'rish
bet16/69
Sana26.02.2022
Hajmi6,9 Mb.
#471647
1   ...   12   13   14   15   16   17   18   19   ...   69
Bog'liq
PHP

Data Types
|
23
change. Constants are referred to by their identifiers and are set using the
define( )
function:
define('PUBLISHER', "O'Reilly & Associates");
echo PUBLISHER;
Keywords
A keyword is a word reserved by the language for its core functionality—you cannot
give a variable, function, class, or constant the same name as a keyword. Table 2-1
lists the keywords in PHP, which are case-insensitive.
In addition, you cannot use an identifier that is the same as a built-in PHP function.
For a complete list of these, see Appendix A.
Data Types
PHP provides eight types of values, or data types. Four are scalar (single-value) types:
integers, floating-point numbers, strings, and booleans. Two are compound (collec-
tion) types: arrays and objects. The remaining two are special types: resource and
NULL. Numbers, booleans, resources, and NULL are discussed in full here, while
strings, arrays, and objects are big enough topics that they get their own chapters
(Chapters 4, 5, and 6).
Table 2-1. PHP core language keywords
and
$argc
$argv
as
break
case
cfunction
class
continue
declare
default
die
do
E_ALL
echo
E_ERROR
else
elseif
empty
enddeclare
endfor
endforeach
endif
endswitch
E_PARSE
eval
E_WARNING
exit
extends
FALSE
for
foreach
function
$HTTP_COOKIE_VARS
$HTTP_ENV_VARS
$HTTP_GET_VARS
$HTTP_POST_FILES
$HTTP_POST_VARS
$HTTP_SERVER_VARS
if
include
include_once
global
list
new
not
NULL
old_function
or
parent
PHP_OS
$PHP_SELF
PHP_VERSION
print
require
require_once
return
static
stdClass
switch
$this
TRUE
var
virtual
while
xor
_ _FILE_ _
_ _LINE_ _
_ _sleep
_ _wakeup
$_COOKIE
$_ENV
$_FILES
$_GET
$_POST
$_SERVER
,ch02.15294 Page 23 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   ...   12   13   14   15   16   17   18   19   ...   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