neo Posted May 17, 2005 Report Share Posted May 17, 2005 Taatad man ir mainiigais $teksts. $teksts="Shis ir kautkads teksts-teksts taalaak turpinaas"; Man ir jaadabuu araa no shii teksta tikai taa dala liidz domuziimei (domuziimi neskaitot). Paldies Link to comment Share on other sites More sharing options...
Delfins Posted May 17, 2005 Report Share Posted May 17, 2005 un ja domuzīme būs sākumā? :) definē uzdevumu konkrētāk $str = substr( $text, 0, strpos($text,'-') ); Link to comment Share on other sites More sharing options...
neo Posted May 17, 2005 Author Report Share Posted May 17, 2005 (edited) Paldies. Nezinu kapeec pasham tas neienaaca praataa. P.S. Domuziime manaa gadiijumaa nevar buut saakumaa :) Edited May 17, 2005 by neo Link to comment Share on other sites More sharing options...
neo Posted November 23, 2005 Author Report Share Posted November 23, 2005 Tagat paceelaas jautaajums: bet ja domuziime buutu pirms teksta? Link to comment Share on other sites More sharing options...
[Ya] Posted November 23, 2005 Report Share Posted November 23, 2005 uztaisi citu atdalītāju, kurš netiek lietots normāla teksta izveidē, pārsvarā tas ir simbols "|" Link to comment Share on other sites More sharing options...
neo Posted November 23, 2005 Author Report Share Posted November 23, 2005 Izmeeginaaju shitaa un sanaaca. http://paste.php.lv/2894 Link to comment Share on other sites More sharing options...
[Ya] Posted November 23, 2005 Report Share Posted November 23, 2005 nebij vieglāk uztaisīt nevis to foreach ... bet preg_match("/[a-zA-Z0-9]/",$bld_name); Link to comment Share on other sites More sharing options...
neo Posted November 23, 2005 Author Report Share Posted November 23, 2005 Kluudas labojums: http://paste.php.lv/2895 Es neesmu veel iebraucis shajos preg_..... Link to comment Share on other sites More sharing options...
[Ya] Posted November 23, 2005 Report Share Posted November 23, 2005 (edited) reku tev buus īsāks gatavs kods http://paste.php.lv/2897 Edited November 23, 2005 by [Ya] Link to comment Share on other sites More sharing options...
blackhalt Posted November 23, 2005 Report Share Posted November 23, 2005 - un _ varējāt atļaut ;) Link to comment Share on other sites More sharing options...
Recommended Posts