Welcome Guest, Not a member yet? Register   Sign In
Issue with \r\n and \t
#1

[eluser]EEssam[/eluser]
Hi guys,

Can the following be written more nicely:

.....

if ($this->input->post('newline') == '\r\n')
{
$newline = "\r\n";
}
elseif ($this->input->post('newline') == '\t')
{
$newline = "\t";
}
else
{
$newline = $this->input->post('newline');
}

.....
echo $this->dbutil->csv_from_result($query, $delimiter, $newline);

Thanks.


Messages In This Thread
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:20 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:42 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:45 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:52 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 07:53 PM
Issue with \r\n and \t - by El Forum - 06-27-2008, 08:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB