FT3 Posted August 16, 2011 Report Share Posted August 16, 2011 sveiki vai kads nevaretu iedot simple plus minus funkciju ? Quote Link to comment Share on other sites More sharing options...
codez Posted August 16, 2011 Report Share Posted August 16, 2011 (edited) function plusminus(){return 'Hello PlusMinus';} Edited August 16, 2011 by codez Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 16, 2011 Author Report Share Posted August 16, 2011 codez , njam neko citu izdomat nevareji ? Quote Link to comment Share on other sites More sharing options...
mad182 Posted August 16, 2011 Report Share Posted August 16, 2011 (edited) function plusminus($int) { if(rand(0,1)) { return -$int; } else { return $int; } } Edited August 16, 2011 by mad182 Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 16, 2011 Author Report Share Posted August 16, 2011 netas :) Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 16, 2011 Report Share Posted August 16, 2011 function plus($x, $y) { return $x + $y; } function minus($x, $y) { return $x - $y; } Quote Link to comment Share on other sites More sharing options...
mad182 Posted August 16, 2011 Report Share Posted August 16, 2011 Nu ja tu paskaidrotu, ko vēlies panākt, varbūt citi beigtu ņirgāties un atbildētu... Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 16, 2011 Author Report Share Posted August 16, 2011 daGrevis plds :) Quote Link to comment Share on other sites More sharing options...
mad182 Posted August 16, 2011 Report Share Posted August 16, 2011 Tas tiešām ir tas, ko tev vajadzeja? Tas ir bezjēdzīgākais koda gabals, ko šodien esmu redzējis. Vai tiešām rakstīt plus($x,$y) ir vienkāršāk, kā $x+$y? :D Quote Link to comment Share on other sites More sharing options...
TheQn Posted August 16, 2011 Report Share Posted August 16, 2011 Foruma bija kada video script + up/down reitingu sistemu ar ajax. mekle pats. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted August 16, 2011 Report Share Posted August 16, 2011 Tas tiešām ir tas, ko tev vajadzeja? Tas ir bezjēdzīgākais koda gabals, ko šodien esmu redzējis. Vai tiešām rakstīt plus($x,$y) ir vienkāršāk, kā $x+$y? :D Ir redzēti daudz, daudz bezjēdzīgāki! :D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.