andrez Posted February 12, 2005 Report Posted February 12, 2005 kaa vareetu ja mums ir mainiigais kuraa ir liels strings. nu piemeeram kaads raksts. un mese gribam ielitk citu stringu aptuveni peec 1/3 teksta peec komanta. piemeeram $string=' lalalalalla. asdasd. asdasdasd.a sdasd asdasd.asdasd.asdads.asdasd asdadas.asdasdasd .asd asd a.sdasd.'; $string=do($string, "kaka"); un rezulultaatam vajadzeetu buut $string=' lalalalalla. asdasd. asdasdasd.kakaa sdasd asdasd.asdasd.asdads.asdasd asdadas.asdasdasd .asd asd a.sdasd.';
lame Posted February 12, 2005 Report Posted February 12, 2005 kaa vareetu ja mums ir mainiigais kuraa ir liels strings. nu piemeeram kaads raksts.un mese gribam ielitk citu stringu aptuveni peec 1/3 teksta peec komanta. piemeeram $string=' lalalalalla. asdasd. asdasdasd.a sdasd asdasd.asdasd.asdads.asdasd asdadas.asdasdasd .asd asd a.sdasd.'; $string=do($string, "kaka"); un rezulultaatam vajadzeetu buut $string=' lalalalalla. asdasd. asdasdasd.kakaa sdasd asdasd.asdasd.asdads.asdasd asdadas.asdasdasd .asd asd a.sdasd.'; 13648[/snapback] Ja pareizi sapratu tad kaut kaa shaadi $texts = substr($texts, 0, ceil(strlen($texts)/3))).'kaka'.substr($texts, ceil(strlen($texts)/3))+1);
Recommended Posts