[FX.php List] A little help with strings and arrays
Steve Bennett
steve at bentechaps.com
Mon Mar 19 11:25:55 MDT 2007
Thanks everyone for your reply,
I found that "\n" did not work on the Mac but "\r\n" seems to be
working fine on the Mac and from what I understand will also work on
the PC. Another item that I had overlooked was the need for double
quotes " rather than single '.
Here is the code that seems to work fine and thanks again.
$add_result_fields = array('name'=>$_POST['name'],'category'=>implode
("\r\n",$_POST['category']),'approved'=>$_POST['approved'],'amount'=>
$_POST['amount'],);
On Mar 19, 2007, at 10:24 AM, Gjermund Gusland Thorsen wrote:
> \r\n is what I use with FileMaker platform regardless.
>
> ggt667
>
> On 3/19/07, Derrick Fogle <derrick at fogles.net> wrote:
>> Actually, on Mac systems (both Apache/PHP and FM on Macs), you need
>> to just send \r. The \n will either be discarded or turn into a
>> garbage character.
>>
>> On Mar 19, 2007, at 9:08 AM, Andrew Denman wrote:
>>
>> > * I believe the "\r\n" line separators will work on Mac (it
>> > definitely works
>> > on Windows), but if it doesn't work for you on Mac try just "\n".
>>
>>
>> Derrick Fogle
>> derrick at fogles.net
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list