PHP and FileMaker Returns
Hello,
If I have a FileMaker variable that contains a return-delimited list, how does PHP interpret the returns: \r, \n, \r\n? Or to ask another way, if I have a PHP array of strings that I want to return to FileMaker as a return-delimited list, what should I use with the 'join' command?
Regards,
Sean
PHP and FileMaker Returns
Hello Sean,
I think you'll find that FileMaker returns are interpreted as \r. I've been working on some SQL work lately and I built up a list of insert statements that are return delimited in a FM variable named $query, I then use this code to turn the FM var into an array:
$query_arr = explode("\r", fm_evaluate('$query'));I typically use \n to send return characters back to FM but if the same value is then sent back to PHP, I use \r.
Regards,
Micah