KillerBean Posted September 6, 2006 Report Share Posted September 6, 2006 Gribeeju jautaat, kaa var noraadiit.. if (ja $i dalaas ar 5 bez atlikuma) {...}; respektiivi, ja $i = 5.. 10... 15.. tad vinjsh izpilda. kaada funkcija jaapielieto lai uzzinaatu vai ir atlikums, vai ne?? un.. ar $i % 2 noskaidro vai ir paaraskaitlis?? Link to comment Share on other sites More sharing options...
Delfins Posted September 6, 2006 Report Share Posted September 6, 2006 doh... pirms kodēt pastudē matemātiku... Operācija `mod` if ( $xxx % 5 == 0) { } Link to comment Share on other sites More sharing options...
KillerBean Posted September 6, 2006 Author Report Share Posted September 6, 2006 Matemaatika man ir pat vairaak, kaa ok.. tas ka nekodeeju paaraak ilgi, tas ir miinuss.. jo nezinu peec kaadas funkcijas mekleet, un ar % vai + un - searchaa nepietiek.. Link to comment Share on other sites More sharing options...
bubu Posted September 6, 2006 Report Share Posted September 6, 2006 Ne jau sērčs ir jālieto, bet gan manuālis: http://www.php.net/manual/en/language.oper....arithmetic.php Link to comment Share on other sites More sharing options...
Delfins Posted September 6, 2006 Report Share Posted September 6, 2006 (edited) 1.) RTFM (http://lv.php.net/math + links no turienes http://lv.php.net/manual/en/language.opera...arithmetic.php) - tev tāc bija jādadomājās līdz tādai prastai lietai? 2.) http://www.google.lv/search?q=how+to+search+web 3.) kas attiecās uz PHP, - php.net/any_keyword_here Edited September 6, 2006 by Delfins Link to comment Share on other sites More sharing options...
Recommended Posts