Jump to content

taylhis

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

taylhis's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This should be simple -- I am BRAND NEW to PHP... I have this code... foreach ($result as $value) { echo trim($value)."+"; this currently works as it should and let's say the input is hello -- the web output is "hello+helloa+hellob+helloc" as it should be (using the other code in the program before this...  But..  I need to make it the variable so that a variable such as $car = "hello+helloa+hellob+helloc"... When I simply replace echo trim($value)."+"; with $car = trim($value)."+"; it keeps REPLACING the variable each time and not adding it onto the end.  ANy help would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.