Click to See Complete Forum and Search --> : Add strings together in PHP
AmazingAnt
07-09-2006, 11:18 AM
Ok, this is a really stupid question that I should already know the answer to, but i've always just worked around my not knowing this. Unfortunatly, I can't work around it this time. How do I take string $data, which has text in it already, and add the text from $atad to it?
hitecbill
07-09-2006, 11:23 AM
$a="abc";
$b="def";
$c="$a$b";
outputs:
"abcdef"
:)
NogDog
07-09-2006, 11:25 AM
$data .= $atad;
(Note the .= operator.)
AmazingAnt
07-09-2006, 11:33 AM
thanks to both. Like I said, really stupid question, but if I never ask it, then i'll never know.
Oh, nogdog. I'd like to ask you a question about the fputcsv() thing, and so i'm gonna post my question in the original csv thread.