public function prepare($fromuid, $touid, $sid, $ctime = "Null")
{
/*
$this->fromuid[] = $fromuid;
$this->touid[] = $touid;
$this->sid[] = $sid;
*/
$arr_row ['fromuid'] = $fromuid;
$arr_row ['touid'] = $touid;
$arr_row ['sid'] = $sid;
$arr_row ['ctime'] = $ctime;
array_push ( $this->arr_data, $arr_row );
}
{
/*
$this->fromuid[] = $fromuid;
$this->touid[] = $touid;
$this->sid[] = $sid;
*/
$arr_row ['fromuid'] = $fromuid;
$arr_row ['touid'] = $touid;
$arr_row ['sid'] = $sid;
$arr_row ['ctime'] = $ctime;
array_push ( $this->arr_data, $arr_row );
}
例子 1. array_push() 例子
$stack = array ("orange", "banana");
array_push ($stack, "apple", "raspberry");
print_r($stack);
本例将使 $stack 具有如下单元: Array
(
[0] => orange
[1] => banana
[2] => apple
[3] => raspberry
)
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:https://jackxiang.com/post/1649/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
评论列表