我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

无需键即可将数组添加到数组[关闭]

I know this must be a huge newbie question, but I didn't find the correct answer. Let's see. I have an array set:

$global_array = array();

Then, I want to add an arry inside $global_array, but I dont want the keys. So, the result I want to get is:

 $global_array = array(
   array(
      'bla',
      'bla'
   )
 );

Sorry for the noob question. Thanks!

This should help:

$global_array[] = array('bla','bla');

All arrays will have keys...

If not defined as default 0,1,2,3...

近期文章

  • PHP IRC Bot创建无限循环
  • 如何从这个对象中检索值?
  • wordpress主题中<em>的未知输出
  • 如何从两个或多个表中删除记录
  • Laravel 4.2刀片模板三元快捷方式
  • 如何用array_walk替换嵌套数组中的值?
  • 根据另一个数组过滤多维数组
  • For Loop:在php中增加保留0的长数字
  • PHP - 发送响应并继续执行直到下一个响应
  • Magento如何验证单个客户的订单详情
  • 在groupBy选择后计算单个用户的总记录数
  • 我的表在页面重新加载时用空行更新
  • 确定php脚本中使用的内存
  • 在新窗口中显示表值
  • 如何在PHP Web应用程序中显示双屏幕[关闭]
  • 如何改进这个SQL查询(SQLite和PHP)
  • 无法让http_referer留在会话中
  • 只需要2个字段中的一个,不起作用
  • 在写上下文中不能使用函数返回值
  • Apache Tomcat - 用于部署的语言和工具

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华