Sephy Posted April 24, 2008 Report Share Posted April 24, 2008 man piemeram ir mainigais : $mainigs=1234567890; un es gribu rezervert pienemsim 2 vietas(3 un 6): $mainigs=12_34_567890; tur ku svitrina ir manas tukshas rezervetas vietas!! kaa sito dabut gatavu?! Link to comment Share on other sites More sharing options...
Vebers Posted April 24, 2008 Report Share Posted April 24, 2008 Ja tas ir strings tad ar php.net/substr Link to comment Share on other sites More sharing options...
Aleksejs Posted April 24, 2008 Report Share Posted April 24, 2008 (edited) Rezervēt tas ir kā? Ar domu, ka neviena cita funkcija tajās nevar ierakstīt? Edited April 24, 2008 by Aleksejs Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 Rezervēt tas ir kā? Ar domu, ka neviena cita funkcija tajās nevar ierakstīt? Nope istenibaa tajaas vietaas ir takaa nulee. Velak piemeram es tur kaut kadu simbolu varu ielikt iekshaa. Link to comment Share on other sites More sharing options...
mounkuls Posted April 24, 2008 Report Share Posted April 24, 2008 Ja tas ir strings, rezervēšanai izmanto tajās vietās kādu simbolu kuru neizmantos, vai vienkārši atstarpi var. Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 tas ir skaidrs bet kaa lai pabida parejas vertibas uz labo pusi?! Link to comment Share on other sites More sharing options...
Aleksejs Posted April 24, 2008 Report Share Posted April 24, 2008 Par substr izlasīji, ja? Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 ar to jau tikai normali var sadalit un rezervet vietu, bet kaa pectam apvienoshu atpakal?! Link to comment Share on other sites More sharing options...
Aleksejs Posted April 24, 2008 Report Share Posted April 24, 2008 $apvienotais = $sadalita_kreisa_puse . $rezervacija . $sadalita_laba_puse Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 nulabi pameginashu Link to comment Share on other sites More sharing options...
Aleksejs Posted April 24, 2008 Report Share Posted April 24, 2008 "nulabi pamēģināšu" - Izklausās tā itkā Tu man taisītos baigo pakalpojumu izdarīt. Manis pēc vari necensties. ;) Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 (edited) es tomer centishos.... tevis del ;D edit:man izdevaas ;] Edited April 24, 2008 by Sephy Link to comment Share on other sites More sharing options...
bubu Posted April 24, 2008 Report Share Posted April 24, 2008 Joprojām... $mainigs=1234567890; ir integers, bet tu kautko ar stringiem gribi... Link to comment Share on other sites More sharing options...
Sephy Posted April 24, 2008 Author Report Share Posted April 24, 2008 es vinu netaisos izmatot matematiskaas operacijas(ja nu vienigi simbolu ieksh mana mainigaa salidzinashanai)... Link to comment Share on other sites More sharing options...
Aleksejs Posted April 24, 2008 Report Share Posted April 24, 2008 Atkārtošos vēlreiz: Tie ir PHP sintakses izlutinātie, kas nav izjutuši strong typed valodas sūri skarbo garšu ;)Šis ir viens no iemesliem, kādēļ Pascal tiek ieteikts programmēšanas prasmju apgūšanai - tas ir kā "drill sargent" amerikāņu filmās, kas iedresē respektu pret datu tipiem un pret mainīgo definēšanu ;) Link to comment Share on other sites More sharing options...
Recommended Posts