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/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: i want to send a variable from method X to method Y (/showthread.php?tid=40717)



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