vabole Posted November 20, 2006 Report Share Posted November 20, 2006 Ir. var menesis = 11; if(menesis == 11){ menesis = novembris \ te man vaig mainiit veertiibu, bet tas nesanaak, to vispaar var, kas ir nepareizi \ } document.write(menesis) Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2006 Report Share Posted November 20, 2006 menesis = 'novembris'; Link to comment Share on other sites More sharing options...
vabole Posted November 20, 2006 Author Report Share Posted November 20, 2006 Paldies, zinot kaut ko var vairākām valodām, nemaz nezini vairs kur ir kas Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2006 Report Share Posted November 20, 2006 Eu nu beidz - tie ir pamatu pamati. Link to comment Share on other sites More sharing options...
bubu Posted November 20, 2006 Report Share Posted November 20, 2006 Kādu valodu tu, vabole, ta zini, ja jau strings nav jāliek pēdiņās? Link to comment Share on other sites More sharing options...
vabole Posted November 20, 2006 Author Report Share Posted November 20, 2006 kaut ko jau zinu :) ja ilgāku laiku nekas nav darīts, tad sāk jukt php ar js Link to comment Share on other sites More sharing options...
bubu Posted November 20, 2006 Report Share Posted November 20, 2006 Tu saki, ka php stringiem nevajag pēdiņas?!? Link to comment Share on other sites More sharing options...
Delfins Posted November 20, 2006 Report Share Posted November 20, 2006 switch (menesi) { case xx: return 'xx menesis'; } Link to comment Share on other sites More sharing options...
bubu Posted November 20, 2006 Report Share Posted November 20, 2006 Kāds tur switchs.. ar prostu arraju pilnīgi pietiksies. Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2006 Report Share Posted November 20, 2006 Vispār jau php dažās vietās laikam pieļauj viengabalainus (bez atstarpēm utt) vārdus bez pēdiņām lietot kā stringus. Tikai vispirms šie vārdi tiek interpretēti kā konstantes. Ja netiek atrasta attiecīgā konstante, tad notiek fallbacks uz string. Protams, warnings arī ir. Link to comment Share on other sites More sharing options...
bubu Posted November 20, 2006 Report Share Posted November 20, 2006 Ah pareizi.. aizmirsu, ka cilvēki programmē ignorējot/neredzot wārningus! Link to comment Share on other sites More sharing options...
Recommended Posts