Author |
Message |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Jul 11, 2004 3:23 am Post maybe stupid Post subject: PHP & regex |
 |
|
|
|
I was wondering, if anyone knew a very quick way w/ PHP to split a string up every 2 characters/bytes. ie:
003343
[0]=00
[1]=33
[2]=43
I was thinking a regex might capable of doing it? _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Jul 11, 2004 3:36 am Post maybe stupid Post subject: |
 |
|
|
|
NM
string chunk_split(string string, int [chunklen] , string [end] );
will work |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sun Jul 11, 2004 10:07 am Post maybe stupid Post subject: |
 |
|
|
|
Has this got anything to do with reconstructing banners? |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Jul 11, 2004 4:08 pm Post maybe stupid Post subject: |
 |
|
|
|
coouuulldd be  |
|
Back to top |
|
 |
|