RE: Use of Ampersand in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

Check out this example at famous http://www.weberdev.com

http://www.weberdev.com/get_example-3871.html

Let me know if you need more information.

Thanks,
Richard

-----Original Message-----
From: Nirmalya Lahiri [mailto:nirmalyalahiri@xxxxxxxxx] 
Sent: Monday, January 23, 2006 8:34 AM
To: php-general@xxxxxxxxxxxxx
Subject:  Use of Ampersand in php

Hi everybody,
 Can any one tell me, what is the use of ampersand '&' in php? Is it
a pointer operator like 'C' language? Kindly note the example....

<?php
$a=1;
$b=& $a;
$c=$a;
echo $b,$c;
?>

 After running this example I got result 1 for both variable $b and
$c. Why so?

--Nirmalya

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux