Questions about scope in PHP - from a Java Programmer's Perspective
问题 I'm still fairly new to PHP and so I'm attempting to understand scope concepts within PHP web applications. In the Java world a Java web app - using Java Server Pages (JSP) and upward - will allow a Java Bean to have the following levels of scope: Page Request Session Application Attempting to map these to PHP's scoping capabilities: Page: not really but objects that are local to a call are considered 'gone' after the function call is made so it's sort of like a page scope Request: made by