note 10574 rejected and deleted from Type Juggling by zak
| From: | zak@php.net | Date: | Thu, 11 Jan 2001 22:25:46 +0000 |
| Subject: | note 10574 rejected and deleted from Type Juggling by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9669@lists.php.net to get a copy of this message | ||
What if I want to typecast two variables to object?
eg :
$var_A = 10;
$object = (object) $var_A;
$object->scalar; //this accesses $var_A
$var_B = 20;
$object = (object) $var_B;
Now how can I access $var_B?