By zwu_ca on
I see the code every where. Why don't we put the close($result) after we use $result? -- I'm puzzled.
$result = db_query($sql);
I see the code every where. Why don't we put the close($result) after we use $result? -- I'm puzzled.
$result = db_query($sql);
Comments
PHP manual
I guess you mean free the result? See http://www.php.net/manual/en/language.types.resource.php#language.types....
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.
Got it. Thanks
But in Java, one has to explictly free the resource. So the comparison with Java is not very correct.