Created
July 7, 2010 06:02
-
-
Save tsnoad/466365 to your computer and use it in GitHub Desktop.
questions for evan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
//just say i have an object without __set() defined... | |
//will this work? | |
$foo->squiggle = "zebra"; | |
//now just say the set function is defined like this: | |
function __set($name, $value) { | |
var_dump($name, $value); | |
} | |
//will doing this... | |
$foo->squiggle = "zebra"; | |
//result in squiggle being set as zebra | |
//if not, how do tell set() to change squiggle, as well as do the var_dump? | |
var_dump("Thanks!"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment