zoukankan
html css js c++ java
compact()
定义和用法
compact() 函数创建一个由参数所带
变量
组成的
数组
。如果参数中存在
数组
,该数组中
变量
的值也会被获取。
本函数返回的
数组
是一个
关联数组
,键名为函数的参数,键值为参数中
变量
的值。
本函数执行的行为与 extract() 正好相反。
[1]
语法
compact(var1,var2...)
[1]
例子
编辑
<?php
[1]
$firstname = "Peter";$lastname = "Griffin";$age = "38";$result = compact("firstname", "lastname", "age");print_r($result);?>输出:
Array([firstname] => Peter[lastname] => Griffin[age] => 38)
查看全文
相关阅读:
sharepoint 2013 configure my site
格式化xml
斗罗大陆
spring的beans.xml的配置
jdom学习:读取xml文件
java中加载xml文件方法
struts2中IOC控制反转应用
struts2.xml的配置与技巧
struts2中的路径问题
struts.xml详细配置
原文地址:https://www.cnblogs.com/lemon66/p/4058339.html
最新文章
《软件项目管理》
习《软件过程》有感
习《概述》有感
292. Nim Game
利用jsoup抓取网页图片
463. Island Perimeter
496. Next Greater Element I
Vim常用指令总结(持续更新中)
344. Reverse String
412. Fizz Buzz
热门文章
500. Keyboard Row
476. Number Complement
461. Hamming Distance
sql数据库 大小查询
如果任务对象是用户组
查看DLL文件调用进程
查看sharepoint部署assembly路径
indows 2008 r2/做了SPS2007---2013后,发现添加原来域中的域组添加不上
Proxy account failing to run SSIS Error (Proxy (11) is not allowed for subsystem "SSIS" and user "AB estuser ".
sharepoint 2013 search configuration
Copyright © 2011-2022 走看看