fender0107401 发表于 2013-04-06 09:02

"mysqli_free_result"这个函数有用吗?

mysqli_result::free
mysqli_free_result

http://www.php.net/manual/en/mysqli-result.free.php

貌似没什么意义吧?可能我理解不到位吧。

fender0107401 发表于 2013-04-07 08:42

貌似还是有用的。

http://www.php.net/manual/en/mysqli.query.php


    Either the constant MYSQLI_USE_RESULT or MYSQLI_STORE_RESULT depending on the desired behavior. By default, MYSQLI_STORE_RESULT is used.

    If you use MYSQLI_USE_RESULT all subsequent calls will return error Commands out of sync unless you call mysqli_free_result()

    With MYSQLI_ASYNC (available with mysqlnd), it is possible to perform query asynchronously. mysqli_poll() is then used to get results from such queries.

heyubingfeng 发表于 2013-04-08 16:22

mysqli_result::free -- mysqli_free_result — Frees the memory associated with a result
这是英语的意思,中文的大概已是是 释放内存与结果了

fender0107401 发表于 2013-04-08 16:26

回复 3# heyubingfeng

意思我知道,我就是感觉一个脚本语言,没有必要把内存拿出来说事,不知道这里特意提出来,是不是有什么特别含义。

   
页: [1]
查看完整版本: "mysqli_free_result"这个函数有用吗?