Strings vs Arrays
- From: cajun@xxxxxxxxxxxx (M. Lewis)
- Date: Sat, 30 Dec 2006 01:53:15 -0500
I now we can push (concatenate) data onto an array.
I would assume that we could concatenate data on to a string as well with something like:
$newstring = $oldstring . $newdata
Maybe this isn't correct though. I've not yet tried it.
My question is one method 'better' than the other? If so, why so?
Assuming there is no difference, then perhaps the determination of which to use is dependent entirely on what is to be done with the data later in the program.
Thanks,
Mike
--
Multitasking: Screwing up several things at once...
01:45:01 up 15 days, 22:36, 0 users, load average: 0.15, 0.24, 0.28
Linux Registered User #241685 http://counter.li.org
.
- Follow-Ups:
- Re: Strings vs Arrays
- From: Alan_C
- Re: Strings vs Arrays
- From: "John W. Krahn"
- Re: Strings vs Arrays
- From: DJ Stunks
- Re: Strings vs Arrays
- Prev by Date: Re: Negate a regular expression
- Next by Date: Re: Strings vs Arrays
- Previous by thread: Negate a regular expression
- Next by thread: Re: Strings vs Arrays
- Index(es):
Relevant Pages
|