I am using token_get_all to develop a tool. I am stuck in a situation where I have following query in php code
$sql = "UPDATE `key_values` SET
`Value_Content` = '" . $this->db->escape($revisionValues['value']) . "',
`Comments` = '" . $this->db->escape($revisionValues['comment']) . "',
`Is_Active` = '" . $this->db->escape($revisionValues['actstate']) . "',
`Is_Modified`='1'
WHERE
`Key_Value`='" . $candidateKey['key'] . "'
AND `Email_Template`='" . $candidateKey['template'] . "'
AND `Locale_ID`='" . $candidateKey['locale'] . "'";
and another code
$array = array(
"foo" => "bar",
"bar" => "foo",
);
I want to treat this as one line. Am not able to detect end of line in multiline code as mentioned above. Is there any way to detect it. I need some identifier which tells me that this multiline sql query is one single line for php.