UNPKG
manual-php
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
PHP 手册
github.com/kuriv/manual-php
kuriv/manual-php
manual-php
/
docs
/
语言参考
/
引用的解释
/
引用不是什么.md
25 lines
(18 loc)
•
257 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 引用不是什么
引用不是指针。 ```php
<?php
/** * References are not pointers. * *
@param
string &$string *
@return
void */
function
foo
(
string
&
$string
)
{
$string
= &
$GLOBALS
[
'bar'
]; }
$foo
=
'foo'
;
$bar
=
'bar'
;
foo
(
$foo
); ```