Results 1 to 4 of 4

Thread: php end of line marker

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    127

    php end of line marker

    hope you peops can help .... i know its something really stupid

    im writing values to a text file

    but need to include the line terminator in my string built in php code

    .... im trying somthing like this but i keep getting errors

    $content=$email . '/n';

    and ...

    $content=$email & '/n';

    and ....

    $content=$email + '/n';

    and also with double quotes ...... please help

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: php end of line marker

    Try this: $email . "\n"

    Double-quotes.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: php end of line marker

    Or: "$email\n";
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    127

    Re: php end of line marker

    the latter worked many thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width