⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 05c07-1.php

📁 介绍PHP5的给类型函数应用
💻 PHP
字号:
<?php// Declare two arrays:$first = array('e', 'h', 'r', 'j', 'b');$last = array('w', 'e', 'c');// Combine them using PHPs + operator$plus_union = $last + $first;// Echo this out:  w e c j becho '<p>';foreach ($plus_union as $v) { echo "{$v} "; } echo "</p>\n";// Combine them using merge & unique, getting a true union$union = array_unique(array_merge($first, $last));// Echo this out:  e h r j b w c echo '<p>';foreach ($union as $v) { echo "{$v} "; } echo "</p>\n";?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -