List Info

Thread: note 78432 added to language.oop5.visibility




note 78432 added to language.oop5.visibility
user name
2007-10-11 14:52:57
Re: ference at super_delete_brose dot co dot uk

"If eval() is the answer, you’re almost certainly
asking the wrong question."

<?php
eval('$result = $this->'.$var.';'); //wrong
$result = $this->$var; //right way

$var = "foo";
$this->var = "this will assign to member called
'var'.";
$this->$var = "this will assign to member called
'foo'.";
?>
----
Server IP: 190.2.55.3
Probable Submitter: 190.188.180.157
----
Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.p
hp
Edit        -- https://master
.php.net/note/edit/78432
Del: integrated  -- h
ttps://master.php.net/note/delete/78432/integrated
Del: useless     -- http
s://master.php.net/note/delete/78432/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78432/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78432/spam
Del: non-english -- 
https://master.php.net/note/delete/78432/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78432/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78432
Reject      -- https://mast
er.php.net/note/reject/78432
Search      -- https://
master.php.net/manage/user-notes.php

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


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )