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

php-form-b​​uilder-class复选框值

I am using the php-form-builder-class and am trying to pass in an array to the values to mark the box as checked however the array doesn't work if there are keys. Is there anyway to remove or return the array as

array("0", "1", "2", "3")

instead of

Array ( [0] => "0" [1] => "1" [2] => "2" [3] => "3") 

Thanks in advance for your help.

The array you are dumping is equivalent to the first array (that is there are always "keys" in PHP even though they are ordered integers by default). Maybe you can try using array_values($array)

近期文章

  • 生成用户并发送发送密码
  • Ajax + PHP实现级联选择
  • 限制.Toggleclass一次一个?
  • foreach循环问题与自定义字段
  • PayPal自适应付款退款问题
  • 准备好的声明是否会对文本进行干
  • 附加到Apache环境路径
  • 包含在类内的方法很慢
  • PHP和OCI,填充下拉菜单
  • 用ajax编辑表行(没有jquery)
  • 在服务器上托管CodeIgniter项目
  • PHP - 字符串逻辑分析 - “X和Y或Z”
  • 使用表单中的运算符输入值
  • 用画刷时,边缘出现黑色线该如何处理
  • 关于RSA加密登陆信息的一个疑问
  • asp.net做的登陆界面如何居中?
  • python使用scapy,使用发包工具时,报错NameError: name 'udp' is not defined,求解答,
  • 调用WebService接口,强制转换WSBindingProvider出错,main下运行没有问题
  • 遇到一个c++里stack的问题,没法pop出所有的元素
  • 如何将下载的库编译到特定的Python版本下

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华