Posted by gosha bine on 05/21/07 14:18
On 21.05.2007 15:50 Vince Morgan wrote:
> My problem has a simple solution. However I just can't find it. I cannot
> remember which 'split()' type function allows you to keep the delimiter in
> place within the final array.
> I've tried searching the documentation without success.
> TIA
> Vince
>
>
preg_split with PREG_SPLIT_DELIM_CAPTURE or
preg_match('/[^,;]+|[,;]/'...) where ',;' are delimiters
--
gosha bine
extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok
Navigation:
[Reply to this message]
|