robię podzielone zdanie na słowa jako poniższych:
np .:Jak podzielić ciąg słów i symboli skojarzonej tablicy
This is a test from php, python, asp and also from other languages. Alash! i cannot get my output as followings.
Wynik:
array(
[0]=>"This",
[1]=>"is",
[2]=>"a",
[3]=>"test",
[4]=>"from",
[5]=>"php",
[6]=>",",
[7]=>"python",
[8]=>",",
[9]=>"asp",
[10]=>"and",
[11]=>"also",
[12]=>"from",
[13]=>"other",
[14]=>"languages",
[15]=>".",
[16]=>"Alash",
[17]=>"!",
[18]=>"I",
[19]=>"cannot",
[20]=>"get",
...
)
Co może być moim opcje w php na to?
że coś gr8 ... doceni pomijanie spacji zbyt – KoolKabin
lepiej użyć '/ \ s + | \ b (? = \ W) /', wtedy nie kończ z tymi wszystkimi pustymi ciągami. – mhyfritz
gr8 one ... Thnx to działało – KoolKabin