PHP7 Data Type Resource
A PHP7 resource is a resource loaded from outside the application. This could be a database connection or a resource to create a new file within PHP. So if you are calling a database resource it would look something like this. We will get into this more as you progress in these tutorials.
<?php <pre>$conn = mysqli_connect(localhost,"root","dbpass","dbname");</pre> ?>
How is PHP7 Resource Used In Applications?
A PHP7 Resource is a way to make a call to get data or create data. You will be using several different kinds of resources in your applications.
Video For This Lesson
Please like, share and subscribe.
I hope you enjoyed the article. If I was able to help you please consider a tip for the content.
One Time Tip