Re: splitting string
| From: | Philip Thompson | Date: | Tue, 16 Nov 2004 21:38:45 +0000 |
| Subject: | Re: splitting string | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202225@lists.php.net to get a copy of this message | ||
On Nov 16, 2004, at 2:46 PM, M. Sokolewicz wrote:
Afan Pasalic wrote:[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, ~PhilipChris W. Parker wrote:please explain... WHY is that better?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