Nothing "inside PHP" itself will persist anything across different page loads. You need to store the value somewhere "external", e.g.:
- write it to a file
- write it to a database
- store it in a memcache or other kind of cache
- send it to yourself in an email
- burn it into the screen of the computer and use an elaborate video camera and OCR setup to read it back
- ...
- maybe: sessions