Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

<?PEE8CHPEE?>

Name: Anonymous 2007-06-14 13:12 ID:VJC/zrET

/prog/, I have a PHP class, objectTable, and I want this class to be able to name itself based on its variable name, i.e.

$myTable = new objectTable();

print_r( $myTable );
/* should return something like...

objectTable( [name]=>myTable ...)

*/

Any suggestions?

Name: Anonymous 2007-06-15 13:09 ID:l104phdq

Does this help?

% cat x.php
<?
$foo = "hello";
$bar = "foo";
print ${$bar};
?>

% php x.php
hello

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List