Jump to content

switching to PDO


darkfreaks

Recommended Posts

My guess is no, but you're being very vague. Objects are always passed by reference.

 

Try it?

 

<?php

$obj = new fancyclass;
$obj->val = 'foobar';

fancyfunc($obj);
// outputs foobar;

function fancyfunc($obj) {
echo $obj->val;
}

class fancyclass {

public $val;

}

?>

Link to comment
https://forums.phpfreaks.com/topic/265538-switching-to-pdo/#findComment-1360881
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.