hackerman Posted June 15, 2007 Report Share Posted June 15, 2007 Nu ir piemēram tāds mainīgais: $users->homepage() Ir iespējams viņu nodifinēt, lai ir tikai $users? Karoč kkā tā: $userinfo = $users->homepage(); Zinu, šitais nav pareizs, bet nu kko tml gribu panākt. Is it possible? Link to comment Share on other sites More sharing options...
cucumber Posted June 15, 2007 Report Share Posted June 15, 2007 Tad nosauc pashu objektu savadak. $users = $temp_users -> homepage(); Ja ta nevari tad sakuma clone objektu un tad pieskir users mainigajam. Link to comment Share on other sites More sharing options...
Kavacky Posted June 15, 2007 Report Share Posted June 15, 2007 Tu ķipa veselu objektu gribi pārvērst par mainīgo? A kāda hrena pēc tev to vajag? Velc no objekta ārā to, ko vajag, un viss notiek. Link to comment Share on other sites More sharing options...
hackerman Posted June 15, 2007 Author Report Share Posted June 15, 2007 Piemēram, kā to iznākumu var ierakstīt @ db vai txt ? Es mēģināju, bet kkā nesanāk ;D Link to comment Share on other sites More sharing options...
bubu Posted June 15, 2007 Report Share Posted June 15, 2007 Kas ir $users->homepage() ? strings? Tad tavam iepriekšējam $userinfo = ... vajadzētu strādāt un problēma ir citur. Link to comment Share on other sites More sharing options...
andrisp Posted June 15, 2007 Report Share Posted June 15, 2007 Nu ja tev homepage() metode kaut ko atgriež, tad vienkārši $userinfo = $users->homepage(); būs ok. Tāpat kā ar parastām fjām. Link to comment Share on other sites More sharing options...
hackerman Posted June 15, 2007 Author Report Share Posted June 15, 2007 (edited) Nu tur ir kkas tāds.. : function homepage (){return $this->_arr[ 1];} Itkā tur tālāk ir uzrakstīts $userinfo = $users->homepage(); bet kad uzrakstu echo $userinfo; - nekā nenotiek, bet ja uzrakstu echo $users->homepage();, tad parāda info. o.0 Edit: atvainojos, viss ok, mana vaina atkal... Edited June 15, 2007 by hackerman Link to comment Share on other sites More sharing options...
Recommended Posts