I am new to PHP trying to migrate from Java to PHP. This question may be a foolish one. Sorry if it is.
I have found few singleton implementations in PHP and I am planning to use it for database. My question is: What will happen if two different PHP pages are called or a page is called by more than one client at the same time ? Will it not use the same db connection, statement and store result in same variable ? Wont the result get overridden and corrupted ?