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

).
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3de95-2c3ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3de95-2c3ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?