Pentiums Posted February 17, 2008 Report 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...
Vebers Posted February 17, 2008 Report 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.
blackhalt Posted February 17, 2008 Report Posted February 17, 2008 echo substr('teksts yipīīī', 0, 6);
Recommended Posts