Files
php_8/variables/link_array.php
2022-04-09 21:46:32 +03:00

9 lines
424 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$arr = [
'ресторан' => 'Китайский сюрприз',
'девиз' => 'Nosce te computerus.'
];
$r = &$arr['ресторан']; // $r - то же, что и элемент с индексом 'ресторан'
$r = "Восход луны"; // на самом деле $A['ресторан'] = "Восход луны";
echo $arr['ресторан']; // выводит "Восход луны"