Echo $arrl[null];?>____________________________________________________
A g ar yangi k alit va yangi q iy m at b erilsa
($ n a m e [“new _
key” ] = ”new _value” ), u h o ld a m assivga yangi elem en t q o ‘sh ilg an h i-
so b lan ad i. A g a r biz k a litn i ko‘rsa tm asa k , fa q atg in a q iy m atg a te n g la -
sak, $ n a m e [ ]= ”new _value”, u h o ld a m assiv n in g yangi elem en ti so nli
k alit b o iib , m avjud k a litn in g eng k a tta q iy m a tid a n b ir qiym atga
o sh g a n b o ia d i.
$name=array(2=>5, 3=>6, 4=>15);
$name[] = valuel;________________________________________________
/* qiymati valuel kaliti 5 (bizda kalitning eng katta qiymati 4 bo‘lganligi
Do'stlaringiz bilan baham: |