repl.it
@maniero/

ReferenceParameter.php

PHP Web Server

No description

fork
loading
Files
  • index.php
index.php
1
2
3
4
5
6
7
8
9
<?php
function something(&$string) {
    $string .= 'B';
}
$variavel = 'A';
something($variavel); //<============ Note aqui
echo $variavel; //Irá mostrar "AB"

//https://pt.stackoverflow.com/q/57741/101
Fetching token
?