Exemple #1
0
}
function bar()
{
    $a = 5;
    return $a;
}
foobar(bar());
// strict
//foo(4); // fatal
$c = 5;
function &getRef()
{
    global $c;
    return $c;
}
$c1 =& getRef();
$c1++;
var_dump($c);
// 6
var_dump($c1);
// 6
function &collector()
{
    static $collection = array();
    return $collection;
}
array_push(collector(), 'foo');
//array_push(&collector(), 'foo'); // fatal
var_dump(collector());
// foo is inside
function func(&$arraykey)
Exemple #2
0
                    }
                    ?>
 />
                        </td></tr>
                      </table>
                      <input type="hidden" id="oldbody" name="oldbody" value="<?php 
                    echo $array[$i]["Body"];
                    ?>
" /> <!--htmlentities(-->
                      <input type="hidden" id="oldtitle" name="oldtitle" value="<?php 
                    echo $array[$i]["Title"];
                    ?>
" />
<?php 
                } else {
                    echo getRef(replaceLinks(nl2br($array[$i]["Body"])));
                    // <!--htmlentities(-->
                }
                ?>
                  </div>
<?php 
                if ($edition) {
                    ?>
                  <?php 
                    echo getLicenseAlert();
                    ?>
                  <br /><input type="submit" id="save" name="save" onclick="JavaScript:saveOnClick()" value="<convert>#label=76<convert>" class="button1" /><!--Valider--><input type="submit" id="cancel<?php 
                    echo $local_cat . $array[$i]["Id"];
                    ?>
" name="cancel" onclick="" value="<convert>#label=77<convert>" class="button1" /><!--Annuler-->
<?php