📜  php 数组推送 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:02.780000             🧑  作者: Mango

代码示例6
If you're going to use array_push() to insert a "$key" => "$value" pair into an array, it can be done using the following:

    $data[$key] = $value;

It is not necessary to use array_push.