Can static variables be defined outside functions in php?

The

PHP manual says that "static variables exist only in local function fields." according to this statement, is it meaningless if I define a static variable outside the function?

Php
Apr.21,2021

static variables cannot be defined outside the function/class, all decorated by static belong to global variables


Global variables can be defined

global $name;

I found that static variables were used in the process of writing static variables at the beginning of learning
, and then object-oriented were all class constants and attributes (escape

).
Menu