Re: Reference or copy?
| From: | Yeti | Date: | Wed, 23 Jul 2008 20:20:18 +0000 |
| Subject: | Re: Reference or copy? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277207@lists.php.net to get a copy of this message | ||
<?php
# So if i want a copy in PHP, like:
$a = $b;
# In PHP5 $a would still be a reference as long as $b is not being changed?(!)
# Such behaviour makes it extremely easy to write a speedy script
without worrying about copy/reference issues!
# Thanks to all of you,
# Ernie
?>