neo Posted May 31, 2006 Report Share Posted May 31, 2006 (edited) Kaa dabuut araa mainiigaa veertiibu no funkcijas? Meeginaaju shaadi, bet nesanaak: <? function tests(){ $a="kautkas"; } echo $a; ?> Edited May 31, 2006 by neo Link to comment Share on other sites More sharing options...
Vebers Posted May 31, 2006 Report Share Posted May 31, 2006 function x() { $a = 'viens'; return $a; } $a = x(); Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 31, 2006 Report Share Posted May 31, 2006 (edited) neo --> RTFM !!!! bet vispar ar return function bla() { $a=bla; return $a; } echo bla(); edit: MakaTaNaw pasteidzaas ;) Edited May 31, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
neo Posted May 31, 2006 Author Report Share Posted May 31, 2006 Liels paldies! Link to comment Share on other sites More sharing options...
v3rb0 Posted May 31, 2006 Report Share Posted May 31, 2006 global $a; function x(){global $a; $a=5;} x(); echo $a; function y(&$b){$b=5;} y($b); echo $b; Link to comment Share on other sites More sharing options...
Recommended Posts