Re: splitting string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 16, 2004, at 2:46 PM, M. Sokolewicz wrote:

Afan Pasalic wrote:

Chris W. Parker wrote:
Yes.

$string = "$string1|$string2|$string3|$string4|$string5";


$string_back = explode("|", $string);

Ok, I'm going to change the code and use pipes
:)
Thanks to all of you.!
-afan
please explain... WHY is that better?

[a bit of sarcasm, but somewhat true]
That's easy. | is only 1 character and \n is 2! Newlines are also used everywhere - pipe occurs less often.
[/a bit of sarcasm, but somewhat true]


Just a thought,
~Philip

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux