Re: [PHP] breaking a string into chunks

2003-09-19 Thread Curt Zirzow
* Thus wrote Duncan Hill ([EMAIL PROTECTED]): > On Friday 19 Sep 2003 10:20, David T-G wrote: > > Hi, all -- > > > > Now it's my turn to ask a simple question, or one that sure sounds like > > it should be... > > > > I have a 14-char date string like "20030917181909" and I need to break it > > into

RE: [PHP] breaking a string into chunks

2003-09-19 Thread Javier Tacon
Make your own function, for example: function transformDate($format,$str) { $d = Array(); for($i=0;$imailto:[EMAIL PROTECTED] Enviado el: viernes, 19 de septiembre de 2003 11:20 Para: PHP General list Asunto: [PHP] breaking a string into chunks Importancia: Baja Hi, all -- Now it'

Re: [PHP] breaking a string into chunks

2003-09-19 Thread David T-G
Duncan, et al -- ...and then Duncan Hill said... % % On Friday 19 Sep 2003 10:20, David T-G wrote: % > % > I have a 14-char date string like "20030917181909" and I need to break it % > into its component parts for a more readable "2003-09-17 18:19:09" view. % > How can I do that? Do I really nee

Re: [PHP] breaking a string into chunks

2003-09-19 Thread Marek Kilimajer
you can call preg_match, and only once David T-G wrote: Hi, all -- Now it's my turn to ask a simple question, or one that sure sounds like it should be... I have a 14-char date string like "20030917181909" and I need to break it into its component parts for a more readable "2003-09-17 18:19:09"

Re: [PHP] breaking a string into chunks

2003-09-19 Thread Duncan Hill
On Friday 19 Sep 2003 10:20, David T-G wrote: > Hi, all -- > > Now it's my turn to ask a simple question, or one that sure sounds like > it should be... > > I have a 14-char date string like "20030917181909" and I need to break it > into its component parts for a more readable "2003-09-17 18:19:09"

[PHP] breaking a string into chunks

2003-09-19 Thread David T-G
Hi, all -- Now it's my turn to ask a simple question, or one that sure sounds like it should be... I have a 14-char date string like "20030917181909" and I need to break it into its component parts for a more readable "2003-09-17 18:19:09" view. How can I do that? Do I really need to call substr

Re: [PHP] Breaking a string

2001-10-28 Thread speedboy
> I was looking to take a string like Dan or Dan is great and return it > like > > D > a > n... http://www.php.net/manual/en/function.wordwrap.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] Breaking a string

2001-10-28 Thread David Robley
On Fri, 26 Oct 2001 22:36, Dan McCullough wrote: > I was looking to take a string like Dan or Dan is great and return it > like > > D > a > n > > or > > D > a > n > > i > s > > g > r > e > a > t > > is it the str function that does that and if so does someone have an > example? > > thanks You can

[PHP] Breaking a string

2001-10-26 Thread Dan McCullough
I was looking to take a string like Dan or Dan is great and return it like D a n or D a n i s g r e a t is it the str function that does that and if so does someone have an example? thanks = Dan McCullough --- "Theres no