You have already stored data in PHP variables.  Here is more on that and code libraries.