I need to convert a DateTime to a string, I have the following error:
Catchable fatal error: Object of class DateTime could not be converted to string.
I print a column of an HTML table in this way:
<td align = "center"> <?php echo $linha["data_pagto"]; ?> </td>