Pentiums Posted February 17, 2008 Report Share Posted February 17, 2008 Man piemēram ir dots teksts echo $teksts; vai echo "teksts yipīīī"; kā man viņu saīsināt piemēram līdz 6 simboliem? lai būtu tikai teksts bez tā yipiii utt... Link to comment Share on other sites More sharing options...
Vebers Posted February 17, 2008 Report Share Posted February 17, 2008 Lai dabuutu pirmos 6 simbolus izmanto php.net/substr bet lai pirmo vardu tikai, tad izmanto explode vai ari preg_match. Link to comment Share on other sites More sharing options...
blackhalt Posted February 17, 2008 Report Share Posted February 17, 2008 echo substr('teksts yipīīī', 0, 6); Link to comment Share on other sites More sharing options...
Recommended Posts