PHP学习之一

WBOY
WBOYOriginal
2016-06-23 14:32:27901browse

粗略看了一下PHP语法,与C类似,有几个符号说明如下:
$ 变量
=>数组的元素值


比较奇怪的是“变量的变量”:
$a = "hello";
$$a = "world";
echo "$a, $hello";   // Hello, world
echo "$a, {$$a}";    // 也是 Hello, world

还可以有“函数指针”:
function a()
{}

fuction Call($funName)
{
    $funName();
}

Call("a");


后面就是学习一大堆库函数了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP 常量 dirname(__file__)Next article:php配置相关