neprasa Posted February 16, 2007 Report Share Posted February 16, 2007 1. lai visi vardu saktos ar lielo burtu 2. skaitli piemeram 10000 uzrakstitu 10 000 3. apgriez tekstu otradi pieeram "kur tu esi" - "esi tu kur" Link to comment Share on other sites More sharing options...
andrisp Posted February 16, 2007 Report Share Posted February 16, 2007 1) uz sitiena nepateikshu, 2) http://lv2.php.net/number_format 3) Ar explode uztaisi no teksta masiivu. Tad ar array_reverse apmet elementus otraadi. Un tad ar implode atkal uztaisi stringu. Link to comment Share on other sites More sharing options...
cilveks Posted February 16, 2007 Report Share Posted February 16, 2007 1) http://lv2.php.net/manual/en/function.strtoupper.php Link to comment Share on other sites More sharing options...
andrisp Posted February 16, 2007 Report Share Posted February 16, 2007 <?php $str = 'bla bla bla'; $str{0} = strtoupper($str{0}); echo $str; ?> Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 16, 2007 Report Share Posted February 16, 2007 (edited) andrisp ir gatava f-ja http://lv.php.net/ucwords 3) gatavu funkciju nezinu, bet var šādi $text = 'kur tu esi'; $text = explode(' ', $text); krsort($text); $text = implode(' ', $text); echo $text; Edited February 16, 2007 by Paulinjsh Link to comment Share on other sites More sharing options...
waplet Posted February 16, 2007 Report Share Posted February 16, 2007 ieej phpvideotutorials.com tur ir atbildeuz 1. un 3. jautaajumu! 5. lesson! Link to comment Share on other sites More sharing options...
andrisp Posted February 16, 2007 Report Share Posted February 16, 2007 Paulinjsh, nepamanīju, ka viņam vajag katram vārdam - domāju, ka tikai pirmajam. Link to comment Share on other sites More sharing options...
neprasa Posted February 16, 2007 Author Report Share Posted February 16, 2007 ne tam tresajam biju redzejis tadu funkciju bet aizmirsu to Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 16, 2007 Report Share Posted February 16, 2007 andrisp tad arī ir cita funkcija :) http://lv.php.net/manual/en/function.ucfirst.php Link to comment Share on other sites More sharing options...
Recommended Posts