tags:

views:

33

answers:

1

Here is what works:

$some = new Something();
$some->user="username";
$some->password="password123";

i need:

$some = new Something();
$some->user=$variable1;
$some->user=$variable2;

Please please, can i get quickest way to make it work ? Thanks!

A: 

I just need way to dynamically assign variable to class members.

Johnny Raelph
here is class: http://api.ity.im/example/php/classonly.txt
Johnny Raelph
i need dynamically add user and pass there ($ityclass->login=$something), it works when i do $ityclass->login="value"hope it's clear now
Johnny Raelph