In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the use of the get_resources () function in PHP, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Get_resources () var_dump (get_resources ())
/ / array (3) {
/ / [1] = >
/ / resource (1) of type (stream)
/ / [2] = >
/ / resource (2) of type (stream)
/ / [3] = >
/ / resource (3) of type (stream)
/ /}
$fp = fopen ('1.txtrecording and recording r')
Var_dump (get_resources ())
/ / array (4) {
/ / [1] = >
/ / resource (1) of type (stream)
/ / [2] = >
/ / resource (2) of type (stream)
/ / [3] = >
/ / resource (3) of type (stream)
/ / [5] = >
/ / resource (5) of type (stream-context)
/ /}
This function returns the case of the active resource. For example, in the above example, we first print the contents of this function with only three pieces of data, and then we load a file resource with fopen () and get a resource handle. At this point, print the contents of this function again, and you will find that there is one more item, and the type is a resource handle of type stream-context. This function helps us to see if there are any freed resource operations while debugging.
Thank you for reading this article carefully. I hope the article "what is the use of the get_resources () function in PHP" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 290
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.