PHP Can an object instance be used on multiple pages?

I have been programming functions over the past few years and have never understood the β€œvirtues” of using objects.

My key question is: can an instance of an object in PHP be used on multiple pages, or does it die with the page because it is closed?

Even the link to the tutorial will be great!

+3
source share
5 answers

Everything that you create through PHP will cease to exist the moment the page is completed until you place it in some kind of repository.

, , . , MVC .

MVC.

+3

, , , . , , .

+2

, ... , .. MVC.

"" - PHP ". , , , . ," , , - , ..

CodeIgniter "Yay" "@# $! @# $".

: Amazon ( ) (, DVD ..). /, , . . DVD- .

, , , , . DVD. , , . , . .

+1

PHP has a shared-nothing architecture. Objects do not stand up to the request.

0
source

All Articles