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

📄 04c05-2.php

📁 介绍PHP5的给类型函数应用
💻 PHP
字号:
<?php// Create a couple variables$favorite_color = 'blue';$favorite_weapon = 'crossbow';$favorite_drink = 'bourbon';// Make an array of these variable names$favorite_things = array('color', 'weapon', 'drink');// Now access all these variables programmatically via variable variables// This will output:// color = blue// weapon = crossbow// drink = bourbonforeach ($favorite_things as $thing) {    echo '<p>', $thing, ' = ', ${"favorite_{$thing}"}, '</p>';}?>

⌨️ 快捷键说明

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