男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

ArrayAccess::offsetSet

(PHP 5, PHP 7, PHP 8)

ArrayAccess::offsetSet設置一個(gè)偏移位置的值

說(shuō)明

public ArrayAccess::offsetSet(mixed $offset, mixed $value): void

為指定的偏移位置設置一個(gè)值。

參數

offset

待設置的偏移位置。

value

需要設置的值。

返回值

沒(méi)有返回值。

注釋

注意:

如果另一個(gè)值不可用,那么 offset 參數將被設置為 null,就像下面的例子。

<?php
$arrayaccess
[] = "first value";
$arrayaccess[] = "second value";
print_r($arrayaccess);
?>

以上例程會(huì )輸出:

Array
(
    [0] => first value
    [1] => second value
)

注意:

This function is not called in assignments by reference and otherwise indirect changes to array dimensions overloaded with ArrayAccess (indirect in the sense they are made not by changing the dimension directly, but by changing a sub-dimension or sub-property or assigning the array dimension by reference to another variable). 而是調用 ArrayAccess::offsetGet()。 只有該方法通過(guò)引用返回,操作才會(huì )成功。

男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站