You are here: using $array1 = $array2 in PHP5 as if array is an object? « PHP Programming Language « IT news, forums, messages
using $array1 = $array2 in PHP5 as if array is an object?

Posted by Summercool on 09/27/07 20:54

I wonder in PHP5, can we use

$array1 = $array2 as if it is a class?

i think right now, the whole array is copied (by key and value)...

and i want to assign by reference but NOT in the alias sense.

in other world, i want to say

$array1 =& $array2;
$array2 = range(1, 3);

and I don't want $array1 to change, just like any other objects in
PHP5.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация