You are here: Re: easy question « PHP Programming Language « IT news, forums, messages
Re: easy question

Posted by Justin Koivisto on 01/25/06 19:08

e.ellington@gmail.com wrote:
> I can't find this out by searching on google, php.net, etc. I am going
> over some php code and don't know to much. When using PEAR packages
> there is a lot of =& what does the equal and the ampersand mean in php?
>

Copy by reference... similar to a pointer in C

<?php
$a=1;
$b =& $a;
$b=5;

echo $a; // results in 5
?>

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

 

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

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