CodeIgniter Forums
i want to send a variable from method X to method Y - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: i want to send a variable from method X to method Y (/thread-40717.html)



i want to send a variable from method X to method Y - El Forum - 04-16-2011

[eluser]MrAmine[/eluser]
hi evryone
i want to send a variable from method X to method Y
how can i do


i want to send a variable from method X to method Y - El Forum - 04-16-2011

[eluser]InsiteFX[/eluser]
Code:
X
$a = $b;

call Y($a);

or

call Y(&$a);

InsiteFX