Home > Backend Development > PHP Tutorial > PHP学习之一

PHP学习之一

WBOY
Release: 2016-06-23 14:32:27
Original
903 people have browsed it

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


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

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

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

Call("a");


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template